dybyte opened a new pull request, #23382:
URL: https://github.com/apache/kafka/pull/23382
## Summary
Config topic compaction can leave an active connector without usable task
configs when a task commit is replayed before the connector's latest config
record.
This change:
- marks affected active connectors as inconsistent
- prevents tasks from starting without their configs
- republishes the leader's task configs when they are available
- restarts a STARTED connector to regenerate configs when the leader also
cannot reconstruct them
- retries transient failures with backoff and requests a rejoin for stale,
deleted, or stopped assignments
The recovery endpoint is internal and uses existing inter-worker request
validation. This does not change the public API, config topic record format,
or user configuration.
## Testing
Added unit tests for compacted-log replay, leader and follower recovery,
retry and rejoin behavior, cooperative connector reassignment, and internal
request validation.
Co-Authored-By: Codex
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]