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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.6.0
    • camel-kafka
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: