Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-2199

Do not throw IndexOutOfBoundsException when no task configuration is available

    Details

      Description

      It's possible for a connector implementation to return an empty list of task configurations under certain conditions that cause the logic within the #taskConfigs(int) method to return an empty list of task configurations. This creates an issue in the embedded engine as it assumes that the returned collection is non-null and contains at most 1 element in the collection. We should make the embedded engine more resilient such that if the connector returns an empty task configuration collection that the embedded engine reports that it can't start the connector's task and ends. This should then avoid the case where the connector couldn't be started (see IndexOutOfBoundsException here.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ccranfor Chris Cranford
                Reporter:
                gunnar.morling Gunnar Morling
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: