Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-7995

Created curator/zk module in flink-shaded

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.4.0
    • None
    • Build System
    • None

    Description

      I propose creating a dedicated curator/zookeeper module in flink-shaded.

      Zookeeper & curator are dependencies that are used in multiple modules (kafka 0.8, runtime, mesos), which, since these dependencies are shaded, cause more headaches than ultimately necessary.

      For example, the shading of curator is done in flink-runtime, when really it should happen in flink-shaded curator. This is done as otherwise the shading pattern in flink-runtime would have to be kept in sync with the one in flink-shaded-curator.
      This is also exactly what the kafka connector does, whereas flink-mesos goes through utility methods in flink-runtime that wrap the actual zk/curator accesses.

      What's worse is that you have to know that you must account for the shading. Any module depending on flink-runtime is free to import unshaded curator, neither the IDE nor maven will complain, and tests generally don't catch shading issues.

      A separate flink-shaded module that bundles zookeeper and curator would alleviate these issues.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chesnay Chesnay Schepler
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: