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

ForeignExceptionUtil isn’t packaged when building shaded protocol with -Pcompile-protobuf

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • None
    • None

    Description

      The source folder will be replaced from src/main/java to project.build.directory/protoc-generated-sources when building shaded protocol with -Pcompile-protobuf, but we do not copy the ForeignExceptionUtil. So the final jar lacks the ForeignExceptionUtil and it causes the test error for hbase-client and hbase-server.

      [ERROR] /testptch/hbase/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java:[169,36] cannot find symbol
        symbol:   class ForeignExceptionUtil
        location: package org.apache.hadoop.hbase.util
      [ERROR] /testptch/hbase/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java:[100,36] cannot find symbol
        symbol:   class ForeignExceptionUtil
        location: package org.apache.hadoop.hbase.util
      [ERROR] /testptch/hbase/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java:[2144,17] cannot find symbol
        symbol:   variable ForeignExceptionUtil
        location: class org.apache.hadoop.hbase.regionserver.HRegionServer
      [ERROR] /testptch/hbase/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java:[938,32] cannot find symbol
        symbol:   variable ForeignExceptionUtil
        location: class org.apache.hadoop.hbase.master.MasterRpcServices
      

      This bug blocks the patches which are against the hbase-protocol-shaded module.

      Attachments

        1. patch-unit-hbase-server (after v1.patch).txt
          127 kB
          Chia-Ping Tsai
        2. patch-unit-hbase-client (after v1.patch).txt
          14 kB
          Chia-Ping Tsai
        3. HBASE-17082.v1.patch
          5 kB
          Chia-Ping Tsai
        4. HBASE-17082.v0.patch
          1 kB
          Chia-Ping Tsai
        5. HBASE-17082.nothing.patch
          3 kB
          Chia-Ping Tsai
        6. HBASE-17082.nothing.patch
          3 kB
          Michael Stack
        7. HBASE-17082.nothing.patch
          3 kB
          Michael Stack
        8. 17082_attempted_fix2.txt
          4 kB
          Michael Stack
        9. 17082_attempted_fix.txt
          1 kB
          Michael Stack

        Issue Links

          Activity

            People

              chia7712 Chia-Ping Tsai
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: