[ https://issues.apache.org/jira/browse/HDFS-7886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14350040#comment-14350040 ]
Konstantin Shvachko commented on HDFS-7886: ------------------------------------------- I don't think this fixed it. Jenkins build failed and I see the same on some local runs. It starts with the assertion: {code} 2015-03-06 02:01:49,248 WARN datanode.DataNode (BPServiceActor.java:run(864)) - Unexpected exception in block pool Block pool BP-204559054-67.195.81.144-1425607203396 (Datanode Uuid 4fed10a8-2abc-47e3-abf4-aa9566f2df11) service to localhost/127.0.0.1:8020 java.lang.AssertionError: Must be under-construction replica. at org.apache.hadoop.hdfs.protocol.BlockListAsLongs.setBlock(BlockListAsLongs.java:318) at org.apache.hadoop.hdfs.protocol.BlockListAsLongs.<init>(BlockListAsLongs.java:112) at org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.getBlockReports(FsDatasetImpl.java:1599) at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.blockReport(BPServiceActor.java:458) at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.offerService(BPServiceActor.java:722) at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.run(BPServiceActor.java:856) at java.lang.Thread.run(Thread.java:745) 2015-03-06 02:01:49,249 WARN datanode.DataNode (BPServiceActor.java:run(867)) - Ending block pool service for: Block pool BP-204559054-67.195.81.144-1425607203396 (Datanode Uuid 4fed10a8-2abc-47e3-abf4-aa9566f2df11) service to localhost/127.0.0.1:8020 2015-03-06 02:01:49,249 INFO datanode.DataNode (BlockPoolManager.java:remove(103)) - Removed Block pool BP-204559054-67.195.81.144-1425607203396 (Datanode Uuid 4fed10a8-2abc-47e3-abf4-aa9566f2df11) 2015-03-06 02:01:49,249 INFO impl.FsDatasetImpl (FsDatasetImpl.java:shutdownBlockPool(2485)) - Removing block pool BP-204559054-67.195.81.144-1425607203396 {code} Then the block pool is removed and the test times out since the replica is never reported as it is in the removed pool. > TestFileTruncate#testTruncateWithDataNodesRestart runs timeout sometimes > ------------------------------------------------------------------------ > > Key: HDFS-7886 > URL: https://issues.apache.org/jira/browse/HDFS-7886 > Project: Hadoop HDFS > Issue Type: Bug > Components: test > Affects Versions: 2.7.0 > Reporter: Yi Liu > Assignee: Plamen Jeliazkov > Priority: Minor > Attachments: HDFS-7886.patch > > > https://builds.apache.org/job/PreCommit-HDFS-Build/9730//testReport/ -- This message was sent by Atlassian JIRA (v6.3.4#6332)