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

The current checkcompatibility.py script can not compare master and rel/2.0.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.5.0
    • scripts
    • None
    • Reviewed

    Description

      There are basically two problems.

      One is the findbugs-maven-plugin, on rel/2.0.0, its version is 3.0.0, and it will lead the below error

      [ERROR] Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:3.0.0:findbugs (default) on project hbase: Unable to parse configuration of mojo org.codehaus.mojo:findbugs-maven-plugin:3.0.0:findbugs for parameter pluginArtifacts: Cannot assign configuration entry 'pluginArtifacts' with value '${plugin.artifacts}' of type java.util.Collections.UnmodifiableRandomAccessList to property of type java.util.ArrayList -> [Help 1]
      

      The other is because of opentelemetry. It packs some jar in the fat agent jar, and the name of the directory for holding the extracted jar content still ends .jar, which makes the current script think it is a jar and cause problems.

      java.io.FileNotFoundException: /home/zhangduo/hbase/code/target/compat-check/dst/hbase-assembly/target/dependency/opentelemetry-javaagent-1.0.1-all-jar/META-INF/licenses/okhttp-3.14.9.jar (是一个目录)
              at java.io.FileInputStream.open0(Native Method)
              at java.io.FileInputStream.open(FileInputStream.java:195)
              at java.io.FileInputStream.<init>(FileInputStream.java:138)
              at java.io.FileInputStream.<init>(FileInputStream.java:93)
              at sun.tools.jar.Main.run(Main.java:307)
              at sun.tools.jar.Main.main(Main.java:1288)
      ERROR: can't extract '/home/zhangduo/hbase/code/target/compat-check/dst/hbase-assembly/target/dependency/opentelemetry-javaagent-1.0.1-all-jar/META-INF/licenses/okhttp-3.14.9.jar'
      INFO:root:Results: {}
      Traceback (most recent call last):
        File "./checkcompatibility.py", line 539, in <module>
          main()
        File "./checkcompatibility.py", line 535, in main
          args.compare_warnings))
        File "./checkcompatibility.py", line 233, in compare_results
          if compare_tool_results_count(tool_results, check, issue_type, known_count)]
        File "./checkcompatibility.py", line 252, in compare_tool_results_count
          return tool_results[check][issue_type] > known_count
      KeyError: 'binary'
      

      Attachments

        Issue Links

          Activity

            People

              zhangduo Duo Zhang
              zhangduo Duo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: