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

TestErasureCodingCLI failing because of mismatch in expected output.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: erasure-coding
    • Labels:
      None

      Description

      TestErasureCodingCLI failing because of mismatch in expected output.

      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.assertTrue(Assert.java:41)
      	at org.apache.hadoop.cli.CLITestHelper.displayResults(CLITestHelper.java:264)
      	at org.apache.hadoop.cli.CLITestHelper.tearDown(CLITestHelper.java:126)
      	at org.apache.hadoop.cli.TestErasureCodingCLI.tearDown(TestErasureCodingCLI.java:77)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
      	at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
      

      The failures are because of the following message mismatch while setting/u-nsetting erasure coding on an empty directory

      {code
      2017-12-21 13:43:43,011 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(156)) - -------------------------------------------
      2017-12-21 13:43:43,011 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(157)) - Test ID: [15]
      2017-12-21 13:43:43,011 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(158)) - Test Description: [setPolicy : set policy on non-empty directory]
      2017-12-21 13:43:43,011 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(159)) -
      2017-12-21 13:43:43,011 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(163)) - Test Commands: [-fs hdfs://localhost:50518 -mkdir /ecdir]
      2017-12-21 13:43:43,011 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(163)) - Test Commands: [-fs hdfs://localhost:50518 -touchz /ecdir/file1]
      2017-12-21 13:43:43,011 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(163)) - Test Commands: [-fs hdfs://localhost:50518 -setPolicy -policy RS-6-3-1024k -path /ecdir]
      2017-12-21 13:43:43,011 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(167)) -
      2017-12-21 13:43:43,011 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(170)) - Cleanup Commands: [-fs hdfs://localhost:50518 -rm -R /ecdir]
      2017-12-21 13:43:43,011 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(174)) -
      2017-12-21 13:43:43,011 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(178)) - Comparator: [SubstringComparator]
      2017-12-21 13:43:43,011 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(180)) - Comparision result: [fail]
      2017-12-21 13:43:43,011 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(182)) - Expected output: [Warning: setting erasure coding policy on an non-empty directory will not automatically convert existing data to RS-6-3-1024]
      2017-12-21 13:43:43,011 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(184)) - Actual output: [Set erasure coding policy RS-6-3-1024k on /ecdir
      Warning: setting erasure coding policy on a non-empty directory will not automatically convert existing files to RS-6-3-1024k
      ]
      2017-12-21 13:43:43,011 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(187)) -
      2017-12-21 13:43:43,011 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(156)) - -------------------------------------------
      2017-12-21 13:43:43,012 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(157)) - Test ID: [17]
      2017-12-21 13:43:43,012 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(158)) - Test Description: [unsetPolicy : unset policy on non-empty directory]
      2017-12-21 13:43:43,012 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(159)) -
      2017-12-21 13:43:43,012 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(163)) - Test Commands: [-fs hdfs://localhost:50518 -mkdir /ecdir]
      2017-12-21 13:43:43,012 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(163)) - Test Commands: [-fs hdfs://localhost:50518 -setPolicy -policy RS-6-3-1024k -path /ecdir]
      2017-12-21 13:43:43,012 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(163)) - Test Commands: [-fs hdfs://localhost:50518 -touchz /ecdir/file1]
      2017-12-21 13:43:43,012 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(163)) - Test Commands: [-fs hdfs://localhost:50518 -unsetPolicy -path /ecdir]
      2017-12-21 13:43:43,012 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(167)) -
      2017-12-21 13:43:43,012 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(170)) - Cleanup Commands: [-fs hdfs://localhost:50518 -rm -R /ecdir]
      2017-12-21 13:43:43,012 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(174)) -
      2017-12-21 13:43:43,012 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(178)) - Comparator: [SubstringComparator]
      2017-12-21 13:43:43,012 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(180)) - Comparision result: [fail]
      2017-12-21 13:43:43,012 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(182)) - Expected output: [Warning: unsetting erasure coding policy on an non-empty directory will not automatically convert existing data to replicated data]
      2017-12-21 13:43:43,012 [Thread-0] INFO cli.CLITestHelper (CLITestHelper.java:displayResults(184)) - Actual output: [Unset erasure coding policy from /ecdir
      Warning: unsetting erasure coding policy on a non-empty directory will not automatically convert existing files to replicated data.
      ]

      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                msingh Mukul Kumar Singh
                Reporter:
                msingh Mukul Kumar Singh
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: