Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
2.0.4-alpha
-
None
-
None
-
normal enviroment
Description
int the test case "testDeleteBlockPool" :
first we set "DFSConfigKeys.DFS_NAMESERVICES" as "namesServerId1,namesServerId2", but after a cluster was built, the nameservice are set as "ns1,ns2" because the code set a default value for them when we new one cluster.
then we refresh namenode with the nameservice set as "namesServerId2" . so we will add a new nameservice named "namesServerId2" and remove the two old nameservices. because "ns2" and "namesServerId2" have the same bpid, so when the add thread run faster than the remove process, the bpByBlockPoolId in BlockPoolManager will be empty so that it fails when create a new file or path.
Attachments
Issue Links
- duplicates
-
HDFS-5892 TestDeleteBlockPool fails in branch-2
- Closed