Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-4656

Guava classpath conflict caused by kylin-jdbc 3.1.0 jar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • v3.1.0
    • v3.1.1
    • Driver - JDBC
    • None

    Description

      The newly released kylin-jdbc 3.1.0 jar contains a shaded, non-repackaged version of the Guava library. This is causing class duplication with the original guava jar if it is also on the classpath which results in non-deterministic, runtime errors depending on which version of a certain guava class has been picked up by the class-loader from the 2 versions. Based on the runtime errors of the missing classes and methods, it seems to be a very old version, probably <=14.

       

      Either implement a proper shading with package relocation or rely on transitive dependency, but do not shade non-repackaged versions of libraries.

      Attachments

        Activity

          People

            zhangyaqian Yaqian Zhang
            arkigabor Gabor Arki
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: