Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-3690

BlockPlacementPolicyDefault incorrectly casts LOG

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.2-alpha
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The hadoop-tools tests, eg TestCopyListing, fails with

      Caused by: java.lang.ClassCastException: org.apache.commons.logging.impl.SimpleLog cannot be cast to org.apache.commons.logging.impl.Log4JLogger
              at org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementPolicyDefault.<clinit>(BlockPlacementPolicyDefault.java:55)
      

      caused by this cast

        private static final String enableDebugLogging =
          "For more information, please enable DEBUG log level on "
          + ((Log4JLogger)LOG).getLogger().getName();
      
      1. hdfs-3690.txt
        2 kB
        Eli Collins

        Issue Links

          Activity

          Eli Collins created issue -
          Eli Collins made changes -
          Field Original Value New Value
          Link This issue relates to HDFS-3368 [ HDFS-3368 ]
          Eli Collins made changes -
          Assignee Eli Collins [ eli ]
          Eli Collins made changes -
          Attachment hdfs-3690.txt [ 12537259 ]
          Eli Collins made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Eli Collins made changes -
          Description The common tests, eg TestCopyListing, fails with

          {noformat}
          Caused by: java.lang.ClassCastException: org.apache.commons.logging.impl.SimpleLog cannot be cast to org.apache.commons.logging.impl.Log4JLogger
                  at org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementPolicyDefault.<clinit>(BlockPlacementPolicyDefault.java:55)
          {noformat}

          caused by this cast

          {code}
            private static final String enableDebugLogging =
              "For more information, please enable DEBUG log level on "
              + ((Log4JLogger)LOG).getLogger().getName();
          {code}
          The hadoop-tools tests, eg TestCopyListing, fails with

          {noformat}
          Caused by: java.lang.ClassCastException: org.apache.commons.logging.impl.SimpleLog cannot be cast to org.apache.commons.logging.impl.Log4JLogger
                  at org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementPolicyDefault.<clinit>(BlockPlacementPolicyDefault.java:55)
          {noformat}

          caused by this cast

          {code}
            private static final String enableDebugLogging =
              "For more information, please enable DEBUG log level on "
              + ((Log4JLogger)LOG).getLogger().getName();
          {code}
          Eli Collins made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Target Version/s 2.1.0-alpha [ 12321440 ]
          Fix Version/s 2.1.0-alpha [ 12321440 ]
          Resolution Fixed [ 1 ]
          Suresh Srinivas made changes -
          Priority Blocker [ 1 ] Major [ 3 ]
          Arun C Murthy made changes -
          Fix Version/s 2.0.2-alpha [ 12322472 ]
          Fix Version/s 2.1.0-alpha [ 12321440 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Eli Collins
              Reporter:
              Eli Collins
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development