Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-8320

Connect Error handling is using the RetriableException from common package

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.2, 2.3.0, 2.1.2, 2.2.1
    • connect
    • None

    Description

      When a SourceConnector throws 

      org.apache.kafka.connect.errors.RetriableException during the poll, connect runtime is supposed to ignore the error and retry per https://cwiki.apache.org/confluence/display/KAFKA/KIP-298%3A+Error+Handling+in+Connect . When the conenctors throw the execption its not handled gracefully. 

      WorkerSourceTask is catching the exception from wrong package `org.apache.kafka.common.errors`.  It is not clear from the API standpoint as to which package the connect framework supports. The safest thing would be to support both the packages even though it's less desirable.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mageshn Magesh kumar Nandakumar
            mageshn Magesh kumar Nandakumar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment