You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/02/12 16:52:48 UTC

[GitHub] [camel-kafka-connector] Evgen1000end opened a new pull request #1007: Fix problem when call 'context.errantRecordReporter()' will result in a NoSuchMethodException or NoClassDefFoundError when the sink connector is deployed to Connect runtimes older than Kafka 2.6

Evgen1000end opened a new pull request #1007:
URL: https://github.com/apache/camel-kafka-connector/pull/1007


   According to the documentation https://kafka.apache.org/26/javadoc/org/apache/kafka/connect/sink/SinkTaskContext.html#errantRecordReporter--
   changes must be made to ensure backward compatibility.
   
   Excerpt from the documentation:
   
   This method was added in Apache Kafka 2.6. Sink tasks that use this method but want to maintain backward compatibility so they can also be deployed to older 
   Connect runtimes should guard the call to this method with a try-catch block, since calling this method will result in a NoSuchMethodException or NoClassDefFoundError 
   when the sink connector is deployed to Connect runtimes older than Kafka 2.6. For example:
   
   
        try {
            reporter = context.errantRecordReporter();
        } catch (NoSuchMethodError | NoClassDefFoundError e) {
            reporter = null;
        }`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kafka-connector] Evgen1000end commented on pull request #1007: Fix problem when call 'context.errantRecordReporter()' will result in a NoSuchMethodException or NoClassDefFoundError when the sink connector is deployed to Connect runtimes older than Kafka 2.6

Posted by GitBox <gi...@apache.org>.
Evgen1000end commented on pull request #1007:
URL: https://github.com/apache/camel-kafka-connector/pull/1007#issuecomment-778741454


   Thank you all!


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kafka-connector] valdar merged pull request #1007: Fix problem when call 'context.errantRecordReporter()' will result in a NoSuchMethodException or NoClassDefFoundError when the sink connector is deployed to Connect runtimes older than Kafka 2.6

Posted by GitBox <gi...@apache.org>.
valdar merged pull request #1007:
URL: https://github.com/apache/camel-kafka-connector/pull/1007


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kafka-connector] oscerd commented on pull request #1007: Fix problem when call 'context.errantRecordReporter()' will result in a NoSuchMethodException or NoClassDefFoundError when the sink connector is deployed to Connect runtimes older than Kafka 2.6

Posted by GitBox <gi...@apache.org>.
oscerd commented on pull request #1007:
URL: https://github.com/apache/camel-kafka-connector/pull/1007#issuecomment-778336534


   Thanks for this.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kafka-connector] oscerd commented on pull request #1007: Fix problem when call 'context.errantRecordReporter()' will result in a NoSuchMethodException or NoClassDefFoundError when the sink connector is deployed to Connect runtimes older than Kafka 2.6

Posted by GitBox <gi...@apache.org>.
oscerd commented on pull request #1007:
URL: https://github.com/apache/camel-kafka-connector/pull/1007#issuecomment-778346176


   I guess we'll need to backport to 0.7.x before 0.7.2 @valdar 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org