Re: [PR] KAFKA-19869: Mark streams groups records and APIs stable [kafka]
lucasbru merged PR #20841: URL: https://github.com/apache/kafka/pull/20841 -- 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]
Re: [PR] KAFKA-19869: Mark streams groups records and APIs stable [kafka]
mjsax commented on PR #20841: URL: https://github.com/apache/kafka/pull/20841#issuecomment-3529236373 Ship it. -- 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]
Re: [PR] KAFKA-19869: Mark streams groups records and APIs stable [kafka]
lucasbru commented on PR #20841: URL: https://github.com/apache/kafka/pull/20841#issuecomment-3528622393 @mjsax Fixed it -- 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]
Re: [PR] KAFKA-19869: Mark streams groups records and APIs stable [kafka]
mjsax commented on PR #20841: URL: https://github.com/apache/kafka/pull/20841#issuecomment-3523409822 Test failure seems related. -- 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]
Re: [PR] KAFKA-19869: Mark streams groups records and APIs stable [kafka]
lucasbru commented on PR #20841: URL: https://github.com/apache/kafka/pull/20841#issuecomment-3510280531 @mjsax ready for re-review -- 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]
Re: [PR] KAFKA-19869: Mark streams groups records and APIs stable [kafka]
mjsax commented on code in PR #20841:
URL: https://github.com/apache/kafka/pull/20841#discussion_r2499911757
##
server-common/src/main/java/org/apache/kafka/server/common/StreamsVersion.java:
##
@@ -24,16 +24,12 @@ public enum StreamsVersion implements FeatureVersion {
SV_0(0, MetadataVersion.MINIMUM_VERSION, Map.of()),
// Version 1 enables "streams" groups (KIP-1071).
-// Using metadata version IBP_4_2_IV1 disables it by default in AK 4.1
release, and enables it by default in AK 4.2 release.
-// - in AK 4.1, this can be enabled as "early access [unstable]"
-// - in AK 4.2, it is planned to go GA (cf `LATEST_PRODUCTION`)
SV_1(1, MetadataVersion.IBP_4_2_IV1, Map.of());
Review Comment:
Do we also need to make changes to `MetadataVersion`? Ie update
`LATEST_PRODUCTION` field?
Share groups do not go GA with 4.2 yet I believe, so we might need make more
changes to not enable share group as a side effect?
--
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]
Re: [PR] KAFKA-19869: Mark streams groups records and APIs stable [kafka]
mjsax commented on code in PR #20841: URL: https://github.com/apache/kafka/pull/20841#discussion_r2499888659 ## clients/src/main/java/org/apache/kafka/clients/admin/internals/DescribeStreamsGroupsHandler.java: ## @@ -92,7 +92,7 @@ public StreamsGroupDescribeRequest.Builder buildBatchedRequest(int coordinatorId StreamsGroupDescribeRequestData data = new StreamsGroupDescribeRequestData() .setGroupIds(groupIds) .setIncludeAuthorizedOperations(includeAuthorizedOperations); -return new StreamsGroupDescribeRequest.Builder(data, true); +return new StreamsGroupDescribeRequest.Builder(data); Review Comment: Should we remove the constructor taking a second argument `enableUnstableLastVersion`, too? Seems we won't need it any longer? -- 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]
Re: [PR] KAFKA-19869: Mark streams groups records and APIs stable [kafka]
Copilot commented on code in PR #20841:
URL: https://github.com/apache/kafka/pull/20841#discussion_r2498966527
##
clients/src/main/java/org/apache/kafka/clients/admin/internals/DescribeStreamsGroupsHandler.java:
##
@@ -92,7 +92,7 @@ public StreamsGroupDescribeRequest.Builder
buildBatchedRequest(int coordinatorId
StreamsGroupDescribeRequestData data = new
StreamsGroupDescribeRequestData()
.setGroupIds(groupIds)
.setIncludeAuthorizedOperations(includeAuthorizedOperations);
-return new StreamsGroupDescribeRequest.Builder(data, true);
+return new StreamsGroupDescribeRequest.Builder(data);
Review Comment:
The removal of the `enableUnstableLastVersion` parameter changes the API
behavior. The Builder constructor now defaults to `false` (via the no-arg
ApiKeys constructor), which means it will use the stable version. However, this
should be verified to ensure the constructor chain is correct. Looking at
StreamsGroupDescribeRequest.Builder, the single-argument constructor calls
`this(data, false)`, which is the intended behavior for stable APIs.
```suggestion
return new StreamsGroupDescribeRequest.Builder(data, false);
```
##
clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsGroupHeartbeatRequestManager.java:
##
@@ -506,7 +506,7 @@ private NetworkClientDelegate.UnsentRequest
makeHeartbeatRequestAndHandleRespons
private NetworkClientDelegate.UnsentRequest makeHeartbeatRequest(final
long currentTimeMs) {
NetworkClientDelegate.UnsentRequest request = new
NetworkClientDelegate.UnsentRequest(
-new
StreamsGroupHeartbeatRequest.Builder(this.heartbeatState.buildRequestData(),
true),
+new
StreamsGroupHeartbeatRequest.Builder(this.heartbeatState.buildRequestData()),
Review Comment:
The removal of the `enableUnstableLastVersion` parameter changes the API
behavior. The Builder constructor now defaults to `false` (via the no-arg
ApiKeys constructor), which means it will use the stable version. However, this
should be verified to ensure the constructor chain is correct. Looking at
StreamsGroupHeartbeatRequest.Builder, the single-argument constructor calls
`this(data, false)`, which is the intended behavior for stable APIs.
```suggestion
new
StreamsGroupHeartbeatRequest.Builder(this.heartbeatState.buildRequestData(),
false),
```
--
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]
