Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15598

camel-kafka - Remove old reflection code setting partitioner class config

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: camel-kafka
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      There is some old cruft code at

      try {
      // doesn't exist in old version of Kafka client so detect
      // and only call the method if
      // the field/config actually exists
      Field f = ProducerConfig.class.getDeclaredField("PARTITIONER_CLASS_CONFIG");
      if (f != null)

      { loadParitionerClass(resolver, props); }

      } catch (NoSuchFieldException e)

      { // ignore } catch (SecurityException e) { // ignore }

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: