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

Block deletion failure causes an infinite polling in TestDeleteBlockPool

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.23.0
    • None
    • None
    • None

    Description

      In the testDeleteBlockPool function, when file deletion failure, the while loop hangs.

            fs1.delete(new Path("/alpha"), true); //deletion failure
            
            // Wait till all blocks are deleted from the dn2 for bpid1.
            while ((MiniDFSCluster.getFinalizedDir(dn2StorageDir1, 
                bpid1).list().length != 0) || (MiniDFSCluster.getFinalizedDir(
                    dn2StorageDir2, bpid1).list().length != 0)) {
              try {
                Thread.sleep(3000); 
              } catch (Exception ignored) {
              }
            }
      

      Attachments

        Activity

          People

            antn.kutuzov Anton Kutuzov
            dustinday John Doe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: