Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4843

testDeleteBlockPool has a bug which makes it fail occasionally

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.0.4-alpha
    • None
    • federation
    • 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

          Activity

            People

              bharat Bharat Viswanadham
              vincent cho vincent cho
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: