[
https://issues.apache.org/jira/browse/HDFS-15246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17083420#comment-17083420
]
hemanthboyina commented on HDFS-15246:
--------------------------------------
the scenario here is ,
created a file "file1" in a directory "dir1" and created snapshot of the dir1 ,
moved the file1 inside the dir1 to "/" (rootDir)
Now on doing truncate to the "/file1" , it is modifying the content of file
which exists the snapshot too
so on getting the file1 which exists in snapshot i am getting
ArrayIndexofBoundsException , as the file size i.e blocksize got modified
becuase of truncate , but the filediff didnt modified
any suggestions for this ?
> ArrayIndexOfboundsException in BlockManager CreateLocatedBlock
> --------------------------------------------------------------
>
> Key: HDFS-15246
> URL: https://issues.apache.org/jira/browse/HDFS-15246
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: hemanthboyina
> Assignee: hemanthboyina
> Priority: Major
> Attachments: HDFS-15246-testrepro.patch
>
>
> java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
>
> org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.createLocatedBlock(BlockManager.java:1362)
> at
> org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.createLocatedBlocks(BlockManager.java:1501)
> at
> org.apache.hadoop.hdfs.server.namenode.FSDirStatAndListingOp.getBlockLocations(FSDirStatAndListingOp.java:179)
> at
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocations(FSNamesystem.java:2047)
> at
> org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getBlockLocations(NameNodeRpcServer.java:770)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]