Mukul Kumar Singh created HDFS-12956:
----------------------------------------

             Summary: TestErasureCodingCLI failing because of mismatch in 
expected output.
                 Key: HDFS-12956
                 URL: https://issues.apache.org/jira/browse/HDFS-12956
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: erasure-coding
            Reporter: Mukul Kumar Singh
            Assignee: Mukul Kumar Singh


TestErasureCodingCLI failing because of mismatch in expected output.
{code}  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)
{code}

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.
]
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to