Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.4.0
-
Reviewed
Description
There is a NPE in org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.TestFsVolumeList#testAddRplicaProcessorForAddingReplicaInMap if we run this UT individually. And the related bug as bellow:
public void testAddRplicaProcessorForAddingReplicaInMap() throws Exception { // BUG here BlockPoolSlice.reInitializeAddReplicaThreadPool(); Configuration cnf = new Configuration(); int poolSize = 5; ... }
addReplicaThreadPool may not have been initialized and is null, if we run testAddRplicaProcessorForAddingReplicaInMap unit test as an individual unit test.
@VisibleForTesting public static void reInitializeAddReplicaThreadPool() { addReplicaThreadPool.shutdown(); addReplicaThreadPool = null; }
Attachments
Issue Links
- links to