You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "chirag-wadhwa5 (via GitHub)" <gi...@apache.org> on 2025/06/02 10:59:46 UTC
[PR] KAFKA-19358: Updated share_consumer_test.py tests to use set_group_offset_reset_strategy instead of using VerifiableShareConsumer flag [kafka]
chirag-wadhwa5 opened a new pull request, #19878:
URL: https://github.com/apache/kafka/pull/19878
According to the current code in AK, the offset reset strategy for share groups was set using the flag `--offset-reset-strategy` in the share_consumer_test.py tests, but that would mean that the admin client call would be sent out by all members in the share group. This PR changes that by introducing `set_group_offset_reset_strategy` method in kafka.py, which runs the kafka-configs.sh script in one of the existing docker containers, thereby changing the config only once.
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-19358: Updated share_consumer_test.py tests to use set_group_offset_reset_strategy instead of using VerifiableShareConsumer flag [kafka]
Posted by "chirag-wadhwa5 (via GitHub)" <gi...@apache.org>.
chirag-wadhwa5 commented on code in PR #19878:
URL: https://github.com/apache/kafka/pull/19878#discussion_r2121756247
##########
tests/kafkatest/services/verifiable_share_consumer.py:
##########
@@ -108,7 +108,7 @@ class VerifiableShareConsumer(KafkaPathResolverMixin, VerifiableClientMixin, Bac
}
def __init__(self, context, num_nodes, kafka, topic, group_id,
- max_messages=-1, acknowledgement_mode="auto", offset_reset_strategy="",
+ max_messages=-1, acknowledgement_mode="auto", offset_reset_strategy=None,
Review Comment:
Thanks for the review. I have made the required changes.
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-19358: Updated share_consumer_test.py tests to use set_group_offset_reset_strategy instead of using VerifiableShareConsumer flag [kafka]
Posted by "AndrewJSchofield (via GitHub)" <gi...@apache.org>.
AndrewJSchofield commented on PR #19878:
URL: https://github.com/apache/kafka/pull/19878#issuecomment-2931051659
@chirag-wadhwa5 Please merge latest changes.
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-19358: Updated share_consumer_test.py tests to use set_group_offset_reset_strategy [kafka]
Posted by "AndrewJSchofield (via GitHub)" <gi...@apache.org>.
AndrewJSchofield merged PR #19878:
URL: https://github.com/apache/kafka/pull/19878
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-19358: Updated share_consumer_test.py tests to use set_group_offset_reset_strategy instead of using VerifiableShareConsumer flag [kafka]
Posted by "AndrewJSchofield (via GitHub)" <gi...@apache.org>.
AndrewJSchofield commented on code in PR #19878:
URL: https://github.com/apache/kafka/pull/19878#discussion_r2121146664
##########
tests/kafkatest/services/verifiable_share_consumer.py:
##########
@@ -108,7 +108,7 @@ class VerifiableShareConsumer(KafkaPathResolverMixin, VerifiableClientMixin, Bac
}
def __init__(self, context, num_nodes, kafka, topic, group_id,
- max_messages=-1, acknowledgement_mode="auto", offset_reset_strategy="",
+ max_messages=-1, acknowledgement_mode="auto", offset_reset_strategy=None,
Review Comment:
Couldn't you have removed `offset_reset_strategy` entirely from the verifiable share consumer python wrapper?
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org