hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Doe (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-14540) Block deletion failure causes an infinite polling in TestDeleteBlockPool
Date Tue, 04 Jun 2019 01:26:00 GMT
John Doe created HDFS-14540:
-------------------------------

             Summary: Block deletion failure causes an infinite polling in TestDeleteBlockPool
                 Key: HDFS-14540
                 URL: https://issues.apache.org/jira/browse/HDFS-14540
             Project: Hadoop HDFS
          Issue Type: Bug
    Affects Versions: 0.23.0
            Reporter: John Doe


In the testDeleteBlockPool function, when file deletion failure, the while loop hangs.
{code:java}
      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) {
        }
      }
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org


Mime
View raw message