[
https://issues.apache.org/jira/browse/HDFS-3664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eli Collins updated HDFS-3664:
------------------------------
Description:
Looks like there's a race hit by the test where we try to do block management
while shutting down (eg allocate a block or compute replication work after
BlocksMap#close, resulting in an NPE).
was:Looks like there's a race hit by the test where we try to allocate a
block after BlocksMap#close, resulting in an NPE.
Summary: BlockManager race when stopping active services (was:
TestPersistBlocks#TestRestartDfsWithFlush failed with NPE)
Same NPE in TestListCorruptFileBlocks.testListCorruptFileBlocksInSafeMode.
2012-07-15 21:48:39,685 INFO namenode.FSNamesystem
(FSNamesystem.java:stopActiveServices(673)) - Stopping services started for
active state
2012-07-15 21:48:39,686 FATAL blockmanagement.BlockManager
(BlockManager.java:run(2969)) - ReplicationMonitor thread received Runtime
exception.
java.lang.NullPointerException
at
org.apache.hadoop.hdfs.server.blockmanagement.BlocksMap.getBlockCollection(BlocksMap.java:98)
at
org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.computeReplicationWorkForBlocks(BlockManager.java:1097)
at
org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.computeReplicationWork(BlockManager.java:1072)
at
org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.computeDatanodeWork(BlockManager.java:3000)
at
org.apache.hadoop.hdfs.server.blockmanagement.BlockManager$ReplicationMonitor.run(BlockManager.java:2962)
at java.lang.Thread.run(Thread.java:662)
2012-07-15 21:48:39,685 WARN blockmanagement.DecommissionM
> BlockManager race when stopping active services
> -----------------------------------------------
>
> Key: HDFS-3664
> URL: https://issues.apache.org/jira/browse/HDFS-3664
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Reporter: Eli Collins
>
> Looks like there's a race hit by the test where we try to do block management
> while shutting down (eg allocate a block or compute replication work after
> BlocksMap#close, resulting in an NPE).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira