Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1456

TestDecommission fails with assertion Number of replicas for block1 expected:<3> but was:<2>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • None
    • None

    Description

      TestDecommission fails sometimes with the following assertion:

      junit.framework.AssertionFailedError: Number of replicas for block1 expected:<3> but was:<2>
      at org.apache.hadoop.dfs.TestDecommission.checkFile(TestDecommission.java:89)
      at org.apache.hadoop.dfs.TestDecommission.testDecommission(TestDecommission.java:285)

      More logs here: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/231/testReport/org.apache.hadoop.dfs/TestDecommission/testDecommission/

      This test creates a file with target replication factor of 3. Then it verifies that the file actually has a replciation of 3. I think the test should set "dfs.replication.considerLoad" to false before starting the test so that the namenode ignores the load on datanodes while allocating replicas. This is the approach folowed by TestReplication.

      Attachments

        1. testDecommission1456.patch
          1 kB
          Dhruba Borthakur

        Activity

          People

            dhruba Dhruba Borthakur
            dhruba Dhruba Borthakur
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: