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

Add log when URLConnectionFactory.openConnection failed

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha2
    • Component/s: webhdfs
    • Labels:
      None

      Description

      When I try to use swebhdfs, due to client missing a certificate in truststore, it failed, but from client I don't see any warning or error log, I can only find it on datanode side, which is not convenient.

      Add log can help user know what happened without check server side log.

      1. HDFS-10831.001.patch
        0.7 kB
        yunjiong zhao

        Activity

        Hide
        zhaoyunjiong yunjiong zhao added a comment -

        Since this patch only added on line code to log error information, so there is no need to add any test.

        Show
        zhaoyunjiong yunjiong zhao added a comment - Since this patch only added on line code to log error information, so there is no need to add any test.
        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 doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
        +1 mvninstall 7m 15s trunk passed
        +1 compile 0m 34s trunk passed
        +1 checkstyle 0m 17s trunk passed
        +1 mvnsite 0m 38s trunk passed
        +1 mvneclipse 0m 14s trunk passed
        +1 findbugs 1m 29s trunk passed
        +1 javadoc 0m 21s trunk passed
        +1 mvninstall 0m 31s the patch passed
        +1 compile 0m 27s the patch passed
        +1 javac 0m 27s the patch passed
        +1 checkstyle 0m 11s the patch passed
        +1 mvnsite 0m 31s the patch passed
        +1 mvneclipse 0m 10s the patch passed
        +1 whitespace 0m 0s The patch has no whitespace issues.
        +1 findbugs 1m 30s the patch passed
        +1 javadoc 0m 18s the patch passed
        +1 unit 0m 53s hadoop-hdfs-client in the patch passed.
        +1 asflicense 0m 15s The patch does not generate ASF License warnings.
        17m 8s



        Subsystem Report/Notes
        Docker Image:yetus/hadoop:9560f25
        JIRA Issue HDFS-10831
        JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12826740/HDFS-10831.001.patch
        Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
        uname Linux 48fca598de2e 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
        Build tool maven
        Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
        git revision trunk / 0690f09
        Default Java 1.8.0_101
        findbugs v3.0.0
        Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/16612/testReport/
        modules C: hadoop-hdfs-project/hadoop-hdfs-client U: hadoop-hdfs-project/hadoop-hdfs-client
        Console output https://builds.apache.org/job/PreCommit-HDFS-Build/16612/console
        Powered by Apache Yetus 0.4.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 doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 mvninstall 7m 15s trunk passed +1 compile 0m 34s trunk passed +1 checkstyle 0m 17s trunk passed +1 mvnsite 0m 38s trunk passed +1 mvneclipse 0m 14s trunk passed +1 findbugs 1m 29s trunk passed +1 javadoc 0m 21s trunk passed +1 mvninstall 0m 31s the patch passed +1 compile 0m 27s the patch passed +1 javac 0m 27s the patch passed +1 checkstyle 0m 11s the patch passed +1 mvnsite 0m 31s the patch passed +1 mvneclipse 0m 10s the patch passed +1 whitespace 0m 0s The patch has no whitespace issues. +1 findbugs 1m 30s the patch passed +1 javadoc 0m 18s the patch passed +1 unit 0m 53s hadoop-hdfs-client in the patch passed. +1 asflicense 0m 15s The patch does not generate ASF License warnings. 17m 8s Subsystem Report/Notes Docker Image:yetus/hadoop:9560f25 JIRA Issue HDFS-10831 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12826740/HDFS-10831.001.patch Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux 48fca598de2e 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / 0690f09 Default Java 1.8.0_101 findbugs v3.0.0 Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/16612/testReport/ modules C: hadoop-hdfs-project/hadoop-hdfs-client U: hadoop-hdfs-project/hadoop-hdfs-client Console output https://builds.apache.org/job/PreCommit-HDFS-Build/16612/console Powered by Apache Yetus 0.4.0-SNAPSHOT http://yetus.apache.org This message was automatically generated.
        Hide
        andrew.wang Andrew Wang added a comment -

        +1 LGTM will commit shortly

        Show
        andrew.wang Andrew Wang added a comment - +1 LGTM will commit shortly
        Hide
        andrew.wang Andrew Wang added a comment -

        Committed to trunk, branch-2, branch-2.8. Thanks for the contribution yunjiong zhao!

        Show
        andrew.wang Andrew Wang added a comment - Committed to trunk, branch-2, branch-2.8. Thanks for the contribution yunjiong zhao !
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10415 (See https://builds.apache.org/job/Hadoop-trunk-Commit/10415/)
        HDFS-10831. Add log when URLConnectionFactory.openConnection failed. (wang: rev b07c266dca7f303c793b432a0738d593728cf2b3)

        • (edit) hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/URLConnectionFactory.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10415 (See https://builds.apache.org/job/Hadoop-trunk-Commit/10415/ ) HDFS-10831 . Add log when URLConnectionFactory.openConnection failed. (wang: rev b07c266dca7f303c793b432a0738d593728cf2b3) (edit) hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/URLConnectionFactory.java

          People

          • Assignee:
            zhaoyunjiong yunjiong zhao
            Reporter:
            zhaoyunjiong yunjiong zhao
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development