Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Current state: Under Discussion

Discussion thread: here [Change the link from the KIP proposal email archive to your own email thread]

JIRA

Jira
serverASF JIRA
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyKAFKA-4793

...

The following existing metrics will be modified:

MBean Name

Change

New Range of Values

kafka.connect:type=connector-metrics,name=status,connector=([-.\w]+)Add "restarting" as a possible value for this metric.one of: "unassigned", "running", "paused", "failed", "restarting" or "destroyed"
kafka.connect:type=connector-task-metrics,name=status,connector=([-.\w]+)Add "restarting" as a possible value for this metric.one of: "unassigned", "running", "paused", "failed", "restarting" or "destroyed"

Proposed Changes

The Connect distributed and standalone runtimes will be changed to support restarting a combination of the Connector and Task instances for a named connector, based upon the new query parameters. The restart requests will result in the state of each targeted Connector and Task instances being initially set to RESTARTING, and will reuse the worker’s existing logic to stop and (asynchronously) start the Connector and Task instances. That existing logic does not wait for the instances to complete their startup, and it will transition this state to RUNNING when the instance is actually started.

...