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

Fix TestDFSShell.testMoveWithTargetPortEmpty failure.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.4
    • Fix Version/s: 2.9.0, 2.7.4, 3.0.0-alpha4, 2.8.2
    • Component/s: test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      TestDFSShell.testMoveWithTargetPortEmpty() is consistently failing.

      1. HDFS-11893-001.patch
        1 kB
        Brahma Reddy Battula
      2. HDFS-11893-002.patch
        0.9 kB
        Brahma Reddy Battula
      3. org.apache.hadoop.hdfs.TestDFSShell.txt
        0.8 kB
        Konstantin Shvachko
      4. org.apache.hadoop.hdfs.TestDFSShell-output.txt
        199 kB
        Konstantin Shvachko

        Issue Links

          Activity

          Hide
          vinodkv Vinod Kumar Vavilapalli added a comment -

          2.8.1 became a security release. Moving fix-version to 2.8.2 after the fact.

          Show
          vinodkv Vinod Kumar Vavilapalli added a comment - 2.8.1 became a security release. Moving fix-version to 2.8.2 after the fact.
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11810 (See https://builds.apache.org/job/Hadoop-trunk-Commit/11810/)
          HDFS-11893. Fix TestDFSShell.testMoveWithTargetPortEmpty failure. (brahma: rev 0dcf843c008f2b9cece8c0a0cef78140398ac464)

          • (edit) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11810 (See https://builds.apache.org/job/Hadoop-trunk-Commit/11810/ ) HDFS-11893 . Fix TestDFSShell.testMoveWithTargetPortEmpty failure. (brahma: rev 0dcf843c008f2b9cece8c0a0cef78140398ac464) (edit) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java
          Hide
          brahmareddy Brahma Reddy Battula added a comment -

          Committed to trunk,branch-2,branch-2.8,branch-2.8.1 and branch-2.7.

          Konstantin Shvachko thanks a lot for reporting and reviewing the patch..Akira Ajisaka thanks for additional review.

          Show
          brahmareddy Brahma Reddy Battula added a comment - Committed to trunk,branch-2,branch-2.8,branch-2.8.1 and branch-2.7. Konstantin Shvachko thanks a lot for reporting and reviewing the patch.. Akira Ajisaka thanks for additional review.
          Hide
          ajisakaa Akira Ajisaka added a comment -

          +1

          Show
          ajisakaa Akira Ajisaka added a comment - +1
          Hide
          brahmareddy Brahma Reddy Battula added a comment -

          Thanks for review and confirmation.. I will commit today.

          Show
          brahmareddy Brahma Reddy Battula added a comment - Thanks for review and confirmation.. I will commit today.
          Hide
          shv Konstantin Shvachko added a comment -

          +1 Works for me.

          Show
          shv Konstantin Shvachko added a comment - +1 Works for me.
          Hide
          hadoopqa Hadoop QA added a comment -
          -1 overall



          Vote Subsystem Runtime Comment
          0 reexec 0m 20s Docker mode activated.
          +1 @author 0m 0s The patch does not contain any @author tags.
          +1 test4tests 0m 0s The patch appears to include 1 new or modified test files.
          +1 mvninstall 12m 54s trunk passed
          +1 compile 0m 46s trunk passed
          +1 checkstyle 0m 36s trunk passed
          +1 mvnsite 0m 52s trunk passed
          +1 mvneclipse 0m 15s trunk passed
          +1 findbugs 1m 39s trunk passed
          +1 javadoc 0m 43s trunk passed
          +1 mvninstall 0m 46s the patch passed
          +1 compile 0m 42s the patch passed
          +1 javac 0m 42s the patch passed
          +1 checkstyle 0m 33s the patch passed
          +1 mvnsite 0m 48s the patch passed
          +1 mvneclipse 0m 12s the patch passed
          +1 whitespace 0m 0s The patch has no whitespace issues.
          +1 findbugs 1m 44s the patch passed
          +1 javadoc 0m 36s the patch passed
          -1 unit 68m 23s hadoop-hdfs in the patch failed.
          +1 asflicense 0m 17s The patch does not generate ASF License warnings.
          93m 26s



          Reason Tests
          Failed junit tests hadoop.hdfs.server.namenode.ha.TestPipelinesFailover
            hadoop.hdfs.TestDFSStripedOutputStreamWithFailure070
            hadoop.hdfs.web.TestWebHdfsTimeouts



          Subsystem Report/Notes
          Docker Image:yetus/hadoop:14b5c93
          JIRA Issue HDFS-11893
          JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12870553/HDFS-11893-002.patch
          Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
          uname Linux 203a1f23f018 4.4.0-43-generic #63-Ubuntu SMP Wed Oct 12 13:48:03 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
          Build tool maven
          Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
          git revision trunk / 4b4a652
          Default Java 1.8.0_131
          findbugs v3.1.0-RC1
          unit https://builds.apache.org/job/PreCommit-HDFS-Build/19695/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
          Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/19695/testReport/
          modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs
          Console output https://builds.apache.org/job/PreCommit-HDFS-Build/19695/console
          Powered by Apache Yetus 0.5.0-SNAPSHOT http://yetus.apache.org

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 reexec 0m 20s Docker mode activated. +1 @author 0m 0s The patch does not contain any @author tags. +1 test4tests 0m 0s The patch appears to include 1 new or modified test files. +1 mvninstall 12m 54s trunk passed +1 compile 0m 46s trunk passed +1 checkstyle 0m 36s trunk passed +1 mvnsite 0m 52s trunk passed +1 mvneclipse 0m 15s trunk passed +1 findbugs 1m 39s trunk passed +1 javadoc 0m 43s trunk passed +1 mvninstall 0m 46s the patch passed +1 compile 0m 42s the patch passed +1 javac 0m 42s the patch passed +1 checkstyle 0m 33s the patch passed +1 mvnsite 0m 48s the patch passed +1 mvneclipse 0m 12s the patch passed +1 whitespace 0m 0s The patch has no whitespace issues. +1 findbugs 1m 44s the patch passed +1 javadoc 0m 36s the patch passed -1 unit 68m 23s hadoop-hdfs in the patch failed. +1 asflicense 0m 17s The patch does not generate ASF License warnings. 93m 26s Reason Tests Failed junit tests hadoop.hdfs.server.namenode.ha.TestPipelinesFailover   hadoop.hdfs.TestDFSStripedOutputStreamWithFailure070   hadoop.hdfs.web.TestWebHdfsTimeouts Subsystem Report/Notes Docker Image:yetus/hadoop:14b5c93 JIRA Issue HDFS-11893 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12870553/HDFS-11893-002.patch Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux 203a1f23f018 4.4.0-43-generic #63-Ubuntu SMP Wed Oct 12 13:48:03 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / 4b4a652 Default Java 1.8.0_131 findbugs v3.1.0-RC1 unit https://builds.apache.org/job/PreCommit-HDFS-Build/19695/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/19695/testReport/ modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs Console output https://builds.apache.org/job/PreCommit-HDFS-Build/19695/console Powered by Apache Yetus 0.5.0-SNAPSHOT http://yetus.apache.org This message was automatically generated.
          Hide
          brahmareddy Brahma Reddy Battula added a comment -

          Konstantin Shvachko thanks for uploading the console logs..

          Yes,this scenario other than which I mentioned..looks in your environment localhost mapping is not there and hostname came as kshvachk-ld1.linkedin.biz hence it's failing.

          mv: `hdfs://kshvachk-ld1.linkedin.biz:9820/testfile': Does not match target filesystem
          

          Uploaded the patch to address this scenario also,kindly review.

          Show
          brahmareddy Brahma Reddy Battula added a comment - Konstantin Shvachko thanks for uploading the console logs.. Yes,this scenario other than which I mentioned..looks in your environment localhost mapping is not there and hostname came as kshvachk-ld1.linkedin.biz hence it's failing. mv: `hdfs://kshvachk-ld1.linkedin.biz:9820/testfile': Does not match target filesystem Uploaded the patch to address this scenario also,kindly review.
          Hide
          shv Konstantin Shvachko added a comment -

          Attaching logs after running the following command on trunk with your patch applied:
          mvn clean test -Dtest=TestDFSShell#testMoveWithTargetPortEmpty

          Show
          shv Konstantin Shvachko added a comment - Attaching logs after running the following command on trunk with your patch applied: mvn clean test -Dtest=TestDFSShell#testMoveWithTargetPortEmpty
          Hide
          brahmareddy Brahma Reddy Battula added a comment -

          can you please attach the full logs for this testfailure.? it was passing in jenkins also

          Show
          brahmareddy Brahma Reddy Battula added a comment - can you please attach the full logs for this testfailure.? it was passing in jenkins also
          Hide
          shv Konstantin Shvachko added a comment -

          I did reproduce this on trunk on Linux, so it is indeed not specific for branch-2.7. Changing the title and description.
          But your patch didn't fix it for me. Same failure. Adding stack trace for trunk

          Running org.apache.hadoop.hdfs.TestDFSShell
          Tests run: 48, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 17.509 sec <<< FAILURE! - in org.apache.hadoop.hdfs.TestDFSShell
          testMoveWithTargetPortEmpty(org.apache.hadoop.hdfs.TestDFSShell)  Time elapsed: 0.402 sec  <<< FAILURE!
          java.lang.AssertionError: mv should have succeeded expected:<0> but was:<1>
          	at org.junit.Assert.fail(Assert.java:88)
          	at org.junit.Assert.failNotEquals(Assert.java:743)
          	at org.junit.Assert.assertEquals(Assert.java:118)
          	at org.junit.Assert.assertEquals(Assert.java:555)
          	at org.apache.hadoop.hdfs.TestDFSShell.testMoveWithTargetPortEmpty(TestDFSShell.java:798)
          
          Show
          shv Konstantin Shvachko added a comment - I did reproduce this on trunk on Linux, so it is indeed not specific for branch-2.7. Changing the title and description. But your patch didn't fix it for me. Same failure. Adding stack trace for trunk Running org.apache.hadoop.hdfs.TestDFSShell Tests run: 48, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 17.509 sec <<< FAILURE! - in org.apache.hadoop.hdfs.TestDFSShell testMoveWithTargetPortEmpty(org.apache.hadoop.hdfs.TestDFSShell) Time elapsed: 0.402 sec <<< FAILURE! java.lang.AssertionError: mv should have succeeded expected:<0> but was:<1> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.junit.Assert.assertEquals(Assert.java:555) at org.apache.hadoop.hdfs.TestDFSShell.testMoveWithTargetPortEmpty(TestDFSShell.java:798)
          Hide
          hadoopqa Hadoop QA added a comment -
          -1 overall



          Vote Subsystem Runtime Comment
          0 reexec 0m 15s Docker mode activated.
          +1 @author 0m 0s The patch does not contain any @author tags.
          +1 test4tests 0m 0s The patch appears to include 1 new or modified test files.
          +1 mvninstall 15m 7s trunk passed
          +1 compile 0m 56s trunk passed
          +1 checkstyle 0m 40s trunk passed
          +1 mvnsite 1m 1s trunk passed
          +1 mvneclipse 0m 17s trunk passed
          +1 findbugs 1m 51s trunk passed
          +1 javadoc 0m 44s trunk passed
          +1 mvninstall 0m 58s the patch passed
          +1 compile 0m 55s the patch passed
          +1 javac 0m 55s the patch passed
          +1 checkstyle 0m 37s the patch passed
          +1 mvnsite 0m 58s the patch passed
          +1 mvneclipse 0m 13s the patch passed
          +1 whitespace 0m 0s The patch has no whitespace issues.
          +1 findbugs 1m 59s the patch passed
          +1 javadoc 0m 40s the patch passed
          -1 unit 73m 55s hadoop-hdfs in the patch failed.
          +1 asflicense 0m 21s The patch does not generate ASF License warnings.
          102m 54s



          Reason Tests
          Failed junit tests hadoop.hdfs.server.datanode.TestDataNodeVolumeFailureReporting
            hadoop.hdfs.server.datanode.TestDirectoryScanner
            hadoop.hdfs.TestDFSStripedOutputStreamWithFailure150



          Subsystem Report/Notes
          Docker Image:yetus/hadoop:14b5c93
          JIRA Issue HDFS-11893
          JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12870199/HDFS-11893-001.patch
          Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
          uname Linux fe67b993f5be 3.13.0-106-generic #153-Ubuntu SMP Tue Dec 6 15:44:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
          Build tool maven
          Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
          git revision trunk / 89bb8bf
          Default Java 1.8.0_131
          findbugs v3.1.0-RC1
          unit https://builds.apache.org/job/PreCommit-HDFS-Build/19646/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
          Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/19646/testReport/
          modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs
          Console output https://builds.apache.org/job/PreCommit-HDFS-Build/19646/console
          Powered by Apache Yetus 0.5.0-SNAPSHOT http://yetus.apache.org

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 reexec 0m 15s Docker mode activated. +1 @author 0m 0s The patch does not contain any @author tags. +1 test4tests 0m 0s The patch appears to include 1 new or modified test files. +1 mvninstall 15m 7s trunk passed +1 compile 0m 56s trunk passed +1 checkstyle 0m 40s trunk passed +1 mvnsite 1m 1s trunk passed +1 mvneclipse 0m 17s trunk passed +1 findbugs 1m 51s trunk passed +1 javadoc 0m 44s trunk passed +1 mvninstall 0m 58s the patch passed +1 compile 0m 55s the patch passed +1 javac 0m 55s the patch passed +1 checkstyle 0m 37s the patch passed +1 mvnsite 0m 58s the patch passed +1 mvneclipse 0m 13s the patch passed +1 whitespace 0m 0s The patch has no whitespace issues. +1 findbugs 1m 59s the patch passed +1 javadoc 0m 40s the patch passed -1 unit 73m 55s hadoop-hdfs in the patch failed. +1 asflicense 0m 21s The patch does not generate ASF License warnings. 102m 54s Reason Tests Failed junit tests hadoop.hdfs.server.datanode.TestDataNodeVolumeFailureReporting   hadoop.hdfs.server.datanode.TestDirectoryScanner   hadoop.hdfs.TestDFSStripedOutputStreamWithFailure150 Subsystem Report/Notes Docker Image:yetus/hadoop:14b5c93 JIRA Issue HDFS-11893 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12870199/HDFS-11893-001.patch Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux fe67b993f5be 3.13.0-106-generic #153-Ubuntu SMP Tue Dec 6 15:44:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / 89bb8bf Default Java 1.8.0_131 findbugs v3.1.0-RC1 unit https://builds.apache.org/job/PreCommit-HDFS-Build/19646/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/19646/testReport/ modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs Console output https://builds.apache.org/job/PreCommit-HDFS-Build/19646/console Powered by Apache Yetus 0.5.0-SNAPSHOT http://yetus.apache.org This message was automatically generated.
          Hide
          hadoopqa Hadoop QA added a comment -
          -1 overall



          Vote Subsystem Runtime Comment
          0 reexec 0m 18s Docker mode activated.
          0 patch 0m 5s The patch file was not named according to hadoop's naming conventions. Please see https://wiki.apache.org/hadoop/HowToContribute for instructions.
          +1 @author 0m 0s The patch does not contain any @author tags.
          +1 test4tests 0m 0s The patch appears to include 1 new or modified test files.
          +1 mvninstall 14m 35s trunk passed
          +1 compile 0m 48s trunk passed
          +1 checkstyle 0m 37s trunk passed
          +1 mvnsite 0m 56s trunk passed
          +1 mvneclipse 0m 14s trunk passed
          +1 findbugs 1m 43s trunk passed
          +1 javadoc 0m 41s trunk passed
          +1 mvninstall 0m 48s the patch passed
          +1 compile 0m 46s the patch passed
          +1 javac 0m 46s the patch passed
          +1 checkstyle 0m 34s the patch passed
          +1 mvnsite 0m 51s the patch passed
          +1 mvneclipse 0m 11s the patch passed
          +1 whitespace 0m 0s The patch has no whitespace issues.
          +1 findbugs 1m 44s the patch passed
          +1 javadoc 0m 39s the patch passed
          -1 unit 68m 2s hadoop-hdfs in the patch failed.
          +1 asflicense 0m 18s The patch does not generate ASF License warnings.
          95m 3s



          Reason Tests
          Failed junit tests hadoop.hdfs.server.datanode.TestDataNodeVolumeFailure
            hadoop.hdfs.server.datanode.TestDataNodeVolumeFailureReporting



          Subsystem Report/Notes
          Docker Image:yetus/hadoop:14b5c93
          JIRA Issue HDFS-11893
          JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12870191/HDFS-11893-001
          Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
          uname Linux 0b546ff8c1e8 3.13.0-106-generic #153-Ubuntu SMP Tue Dec 6 15:44:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
          Build tool maven
          Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
          git revision trunk / 89bb8bf
          Default Java 1.8.0_131
          findbugs v3.1.0-RC1
          unit https://builds.apache.org/job/PreCommit-HDFS-Build/19645/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
          Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/19645/testReport/
          modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs
          Console output https://builds.apache.org/job/PreCommit-HDFS-Build/19645/console
          Powered by Apache Yetus 0.5.0-SNAPSHOT http://yetus.apache.org

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 reexec 0m 18s Docker mode activated. 0 patch 0m 5s The patch file was not named according to hadoop's naming conventions. Please see https://wiki.apache.org/hadoop/HowToContribute for instructions. +1 @author 0m 0s The patch does not contain any @author tags. +1 test4tests 0m 0s The patch appears to include 1 new or modified test files. +1 mvninstall 14m 35s trunk passed +1 compile 0m 48s trunk passed +1 checkstyle 0m 37s trunk passed +1 mvnsite 0m 56s trunk passed +1 mvneclipse 0m 14s trunk passed +1 findbugs 1m 43s trunk passed +1 javadoc 0m 41s trunk passed +1 mvninstall 0m 48s the patch passed +1 compile 0m 46s the patch passed +1 javac 0m 46s the patch passed +1 checkstyle 0m 34s the patch passed +1 mvnsite 0m 51s the patch passed +1 mvneclipse 0m 11s the patch passed +1 whitespace 0m 0s The patch has no whitespace issues. +1 findbugs 1m 44s the patch passed +1 javadoc 0m 39s the patch passed -1 unit 68m 2s hadoop-hdfs in the patch failed. +1 asflicense 0m 18s The patch does not generate ASF License warnings. 95m 3s Reason Tests Failed junit tests hadoop.hdfs.server.datanode.TestDataNodeVolumeFailure   hadoop.hdfs.server.datanode.TestDataNodeVolumeFailureReporting Subsystem Report/Notes Docker Image:yetus/hadoop:14b5c93 JIRA Issue HDFS-11893 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12870191/HDFS-11893-001 Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux 0b546ff8c1e8 3.13.0-106-generic #153-Ubuntu SMP Tue Dec 6 15:44:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / 89bb8bf Default Java 1.8.0_131 findbugs v3.1.0-RC1 unit https://builds.apache.org/job/PreCommit-HDFS-Build/19645/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/19645/testReport/ modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs Console output https://builds.apache.org/job/PreCommit-HDFS-Build/19645/console Powered by Apache Yetus 0.5.0-SNAPSHOT http://yetus.apache.org This message was automatically generated.
          Hide
          brahmareddy Brahma Reddy Battula added a comment -

          AFAIK, this will will fail in all branches afrer HDFS-10923 in windows at least.

          Problem with InetSocketAddress#getHostName which will return localhost and 127.0.0.1 for linux and windows.

          Sample program which I tried.

                   InetSocketAddress inet = new InetSocketAddress("127.0.0.1",9820);
                          System.out.println("hostname: "+inet.getHostName());

          Uploaded the patch to handle this..Kindly review.

          Show
          brahmareddy Brahma Reddy Battula added a comment - AFAIK, this will will fail in all branches afrer HDFS-10923 in windows at least. Problem with InetSocketAddress#getHostName which will return localhost and 127.0.0.1 for linux and windows. Sample program which I tried. InetSocketAddress inet = new InetSocketAddress( "127.0.0.1" ,9820); System .out.println( "hostname: " +inet.getHostName()); Uploaded the patch to handle this..Kindly review.
          Hide
          shv Konstantin Shvachko added a comment -

          With this stack trace.

          Running org.apache.hadoop.hdfs.TestDFSShell
          Tests run: 32, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 29.028 sec <<< FAILURE! - in org.apache.hadoop.hdfs.TestDFSShell
          testMoveWithTargetPortEmpty(org.apache.hadoop.hdfs.TestDFSShell)  Time elapsed: 0.672 sec  <<< FAILURE!
          java.lang.AssertionError: mv should have succeeded expected:<0> but was:<1>
          	at org.junit.Assert.fail(Assert.java:88)
          	at org.junit.Assert.failNotEquals(Assert.java:743)
          	at org.junit.Assert.assertEquals(Assert.java:118)
          	at org.junit.Assert.assertEquals(Assert.java:555)
          	at org.apache.hadoop.hdfs.TestDFSShell.testMoveWithTargetPortEmpty(TestDFSShell.java:546)
          
          Show
          shv Konstantin Shvachko added a comment - With this stack trace. Running org.apache.hadoop.hdfs.TestDFSShell Tests run: 32, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 29.028 sec <<< FAILURE! - in org.apache.hadoop.hdfs.TestDFSShell testMoveWithTargetPortEmpty(org.apache.hadoop.hdfs.TestDFSShell) Time elapsed: 0.672 sec <<< FAILURE! java.lang.AssertionError: mv should have succeeded expected:<0> but was:<1> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.junit.Assert.assertEquals(Assert.java:555) at org.apache.hadoop.hdfs.TestDFSShell.testMoveWithTargetPortEmpty(TestDFSShell.java:546)

            People

            • Assignee:
              brahmareddy Brahma Reddy Battula
              Reporter:
              shv Konstantin Shvachko
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development