Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-2857

Missing dependency in "uber" jars due to incorrect dependencyManagement.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8.0
    • Component/s: None
    • Labels:
      None

      Description

      I was digging into some failures at $dayjob and noticed that phoenix-4.8.0-SNAPSHOT-client.jar suddenly did not have any o.a.hadoop.util.PlatformName (from hadoop-auth). This cause a failure when UGI was loaded (as it references PlatformName).

      Turns out the changes in PHOENIX-2743 added elements to dependencyManagement, specifically setting the test scope. This causes downstream projects to also inherit that scope, which, in our case here, caused phoenix-core to suddenly not transitively depend on hadoop-auth (via hadoop-common) at the compile scope. This results in hadoop-common in the phoenix-$VERSION-client.jar but not hadoop-auth.

        Attachments

        1. PHOENIX-2857.001.patch
          2 kB
          Josh Elser

          Issue Links

            Activity

              People

              • Assignee:
                elserj Josh Elser
                Reporter:
                elserj Josh Elser
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: