Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-9872

Update Kafka version to fix test IgniteSinkConnectorTest.testSinkPutsWithoutTransformation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.8
    • None
    • None

    Description

      Test started failing after updating kafka https://issues.apache.org/jira/browse/IGNITE-9126

      There is an issue with classloading in kafka https://issues.apache.org/jira/browse/KAFKA-6914, which was fixed but wasn't included to any public releases yet.

      It can be fixed in our test by replacing system class loader in org.apache.ignite.stream.kafka.connect.IgniteSinkConnectorTest#beforeTest:

      Field scl = ClassLoader.class.getDeclaredField("scl"); // Get system class loader
      scl.setAccessible(true); // Set accessible
      scl.set(null, getClass().getClassLoader());

      However, it might be better to wait for kafka 1.1.2 and just update its version.

      Attachments

        Issue Links

          Activity

            People

              Maxim.Pudov Maxim Pudov
              Maxim.Pudov Maxim Pudov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: