Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-20176

Fix warnings about Logging import in hbase-spark test code

    XMLWordPrintableJSON

    Details

    • Hadoop Flags:
      Reviewed

      Description

      This is follow-on to HBASE-16179.

      In HBASE-16179 we fixed warning in non-test code in the following form:

      warning: imported `Logging' is permanently hidden by definition of trait      Logging in package spark
      

      However, there are a few warnings not detected by precommit bot:

      [WARNING] /a/hbase/hbase-spark/src/test/scala/org/apache/hadoop/hbase/spark/HBaseConnectionCacheSuite.scala:25: warning: imported `Logging' is permanently hidden by definition of    trait Logging in package spark
      [WARNING] import org.apache.hadoop.hbase.spark.Logging
      [WARNING]                                      ^
      [WARNING] /a/hbase/hbase-spark/src/test/scala/org/apache/hadoop/hbase/spark/HBaseContextSuite.scala:23: warning: imported `Logging' is permanently hidden by definition of object     Logging in package spark
      [WARNING] import org.apache.hadoop.hbase.spark.Logging
      [WARNING]                                      ^
      [WARNING] /a/hbase/hbase-spark/src/test/scala/org/apache/hadoop/hbase/spark/HBaseContextSuite.scala:23: warning: imported `Logging' is permanently hidden by definition of trait      Logging in package spark
      [WARNING] import org.apache.hadoop.hbase.spark.Logging
      [WARNING]                                      ^
      [WARNING] /a/hbase/hbase-spark/src/test/scala/org/apache/hadoop/hbase/spark/HBaseDStreamFunctionsSuite.scala:20: warning: imported `Logging' is permanently hidden by definition of   object Logging in package spark
      [WARNING] import org.apache.hadoop.hbase.spark.Logging
      [WARNING]                                      ^
      [WARNING] /a/hbase/hbase-spark/src/test/scala/org/apache/hadoop/hbase/spark/HBaseDStreamFunctionsSuite.scala:20: warning: imported `Logging' is permanently hidden by definition of   trait Logging in package spark
      [WARNING] import org.apache.hadoop.hbase.spark.Logging
      [WARNING]                                      ^
      [WARNING] /a/hbase/hbase-spark/src/test/scala/org/apache/hadoop/hbase/spark/HBaseRDDFunctionsSuite.scala:20: warning: imported `Logging' is permanently hidden by definition of       object Logging in package spark
      [WARNING] import org.apache.hadoop.hbase.spark.Logging
      [WARNING]                                      ^
      [WARNING] /a/hbase/hbase-spark/src/test/scala/org/apache/hadoop/hbase/spark/HBaseRDDFunctionsSuite.scala:20: warning: imported `Logging' is permanently hidden by definition of trait Logging in package spark
      [WARNING] import org.apache.hadoop.hbase.spark.Logging
      [WARNING]                                      ^
      [WARNING] /a/hbase/hbase-spark/src/test/scala/org/apache/hadoop/hbase/spark/PartitionFilterSuite.scala:21: warning: imported `Logging' is permanently hidden by definition of object  Logging in package spark
      [WARNING] import org.apache.hadoop.hbase.spark.Logging
      [WARNING]                                      ^
      [WARNING] /a/hbase/hbase-spark/src/test/scala/org/apache/hadoop/hbase/spark/PartitionFilterSuite.scala:21: warning: imported `Logging' is permanently hidden by definition of trait   Logging in package spark
      [WARNING] import org.apache.hadoop.hbase.spark.Logging
      

      This issue is to fix the above warnings in test code.

        Attachments

        1. HBASE-20176.v01.patch
          8 kB
          Artem Ervits

          Activity

            People

            • Assignee:
              dbist13 Artem Ervits
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: