You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "AndrewJSchofield (via GitHub)" <gi...@apache.org> on 2025/10/14 16:07:02 UTC
[PR] MINOR: Separate share consumer metadata class [kafka]
AndrewJSchofield opened a new pull request, #20700:
URL: https://github.com/apache/kafka/pull/20700
As part of separating share consumer infrastructure from the regular consumer, this makes a separate metadata class for share consumers.
--
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] MINOR: Separate share consumer metadata class [kafka]
Posted by "AndrewJSchofield (via GitHub)" <gi...@apache.org>.
AndrewJSchofield commented on code in PR #20700:
URL: https://github.com/apache/kafka/pull/20700#discussion_r2433096483
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:
##########
@@ -78,7 +78,7 @@ public class ShareConsumeRequestManager implements RequestManager, MemberStateLi
private final Logger log;
private final LogContext logContext;
private final String groupId;
- private final ConsumerMetadata metadata;
+ private final Metadata metadata;
Review Comment:
On reflection, I agree.
--
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] MINOR: Separate share consumer metadata class [kafka]
Posted by "AndrewJSchofield (via GitHub)" <gi...@apache.org>.
AndrewJSchofield merged PR #20700:
URL: https://github.com/apache/kafka/pull/20700
--
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] MINOR: Separate share consumer metadata class [kafka]
Posted by "lianetm (via GitHub)" <gi...@apache.org>.
lianetm commented on code in PR #20700:
URL: https://github.com/apache/kafka/pull/20700#discussion_r2432689819
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/RequestManagers.java:
##########
@@ -318,7 +319,7 @@ protected RequestManagers create() {
public static Supplier<RequestManagers> supplier(final Time time,
final LogContext logContext,
final BackgroundEventHandler backgroundEventHandler,
- final ConsumerMetadata metadata,
+ final Metadata metadata,
Review Comment:
this `supplier` is only used by the `ShareConsumer`, should we pass `ShareConsumerMetadata` here instead? (consistent with how the other `supplier` used by the regular consumer takes a `ConsumerMetadata`)
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:
##########
@@ -78,7 +78,7 @@ public class ShareConsumeRequestManager implements RequestManager, MemberStateLi
private final Logger log;
private final LogContext logContext;
private final String groupId;
- private final ConsumerMetadata metadata;
+ private final Metadata metadata;
Review Comment:
shouldn't we have `ShareConsumerMetadata` here? (looks like we couldn't because of the comment above?)
--
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] MINOR: Separate share consumer metadata class [kafka]
Posted by "AndrewJSchofield (via GitHub)" <gi...@apache.org>.
AndrewJSchofield commented on code in PR #20700:
URL: https://github.com/apache/kafka/pull/20700#discussion_r2432935229
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:
##########
@@ -78,7 +78,7 @@ public class ShareConsumeRequestManager implements RequestManager, MemberStateLi
private final Logger log;
private final LogContext logContext;
private final String groupId;
- private final ConsumerMetadata metadata;
+ private final Metadata metadata;
Review Comment:
I'm trying to use `Metadata` as much as possible to make the next refactor easier.
--
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