You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "kumarpritam863 (via GitHub)" <gi...@apache.org> on 2025/04/05 14:06:05 UTC
[PR] Validate Members in case two iceberg sink jobs use same consumer group id [iceberg]
kumarpritam863 opened a new pull request, #12727:
URL: https://github.com/apache/iceberg/pull/12727
**Issue**
In rare scenarios, two Kafka Connect jobs may unintentionally be configured with the same consumer group ID. When this happens, one of the jobs may silently hang — even though the consumer group appears stable — because it cannot find any member consuming from its assigned source topics (i.e., the member with the lexicographically smallest partition) to elect itself as coordinator.
**Root Cause**
1. The connector logic assumes each job is isolated by group ID.
2. If two jobs share a group ID but operate on disjoint sets of topics, only one job gets assigned partitions, while the other finds none and cannot proceed.
3. Because no error is thrown and the group is technically "stable", the idle job just waits indefinitely.
**Solution**
This PR introduces validation and safeguards to detect and prevent this silent failure:
1. Topic Ownership Filtering
Before performing coordinator election, the connector filters group members based on the topics this job is configured for (topics or topics.regex). Only members consuming from those topics are considered valid.
2. Client ID Collision Detection
To catch potential overlaps between jobs sharing the same group ID, the PR also checks for duplicate consumer.override.client.id values within the filtered members.
If a collision is detected, the job fails early with a clear error message.
**Behavior After This Change**
If two jobs accidentally share a consumer group but have overlapping client IDs, one will fail fast with an informative exception.
**If two jobs share a group but are assigned mutually exclusive topics, the election logic will only consider relevant members — preventing silent hangs.**
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Validate Members in case two iceberg sink jobs use same consumer group id [iceberg]
Posted by "kumarpritam863 (via GitHub)" <gi...@apache.org>.
kumarpritam863 commented on PR #12727:
URL: https://github.com/apache/iceberg/pull/12727#issuecomment-2869355214
Commenting for keeping the PR alive.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Validate Members in case two iceberg sink jobs use same consumer group id [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12727:
URL: https://github.com/apache/iceberg/pull/12727#issuecomment-2869268816
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Validate Members in case two iceberg sink jobs use same consumer group id [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12727:
URL: https://github.com/apache/iceberg/pull/12727#issuecomment-2964603578
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Validate Members in case two iceberg sink jobs use same consumer group id [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12727:
URL: https://github.com/apache/iceberg/pull/12727#issuecomment-2986103062
This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Validate Members in case two iceberg sink jobs use same consumer group id [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #12727: Validate Members in case two iceberg sink jobs use same consumer group id
URL: https://github.com/apache/iceberg/pull/12727
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org