Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update scripts
  • Loading branch information
akrambek committed Mar 12, 2024
commit 1bb8a3175e1f6d2a09b226accb381891066f46a9
Original file line number Diff line number Diff line change
Expand Up @@ -3269,7 +3269,7 @@ private void onDecodeDescribeResponse(
int timeoutMax =
Integer.valueOf(newConfigs.getOrDefault(GROUP_MAX_SESSION_TIMEOUT, groupMaxSessionTimeoutDefault));
int delay =
Integer.valueOf(newConfigs.getOrDefault(GROUP_INITIAL_REBALANCE_DELAY, groupMaxSessionTimeoutDefault));
Integer.valueOf(newConfigs.getOrDefault(GROUP_INITIAL_REBALANCE_DELAY, groupInitialRebalanceDelayDefault));
if (delegate.timeout < timeoutMin)
{
delegate.timeout = timeoutMin;
Expand Down Expand Up @@ -4312,7 +4312,10 @@ private final class CoordinatorClient extends KafkaGroupClient
this.delegate = delegate;
this.decoder = decodeCoordinatorReject;
this.encoders = new ArrayDeque<>();
encoders.add(sasl != null ? encodeSaslHandshakeRequest : encodeSyncGroupRequest);
if (sasl != null)
{
encoders.add(encodeSaslHandshakeRequest);
}
}

private void onNetwork(
Expand Down Expand Up @@ -4552,7 +4555,10 @@ protected void doNetworkBegin(
replySeq = 0;
state = 0;
encoders.clear();
encoders.add(sasl != null ? encodeSaslHandshakeRequest : encodeSyncGroupRequest);
if (sasl != null)
{
encoders.add(encodeSaslHandshakeRequest);
}
nextRequestId = 0;
nextResponseId = 0;
}
Expand Down Expand Up @@ -4986,17 +4992,9 @@ private void doSyncGroupRequest(
final int offset = 0;
final int sizeof = assignment.sizeof();

if (!KafkaState.initialOpening(state) ||
KafkaState.closed(state))
{
doNetworkBegin(traceId, authorization, 0);
}
else
{
encoders.add(encodeSyncGroupRequest);
signaler.signalNow(originId, routedId, initialId, traceId, SIGNAL_SYNC_GROUP_REQUEST, 0,
buffer, offset, sizeof);
}
encoders.add(encodeSyncGroupRequest);
signaler.signalNow(originId, routedId, initialId, traceId, SIGNAL_SYNC_GROUP_REQUEST, 0,
buffer, offset, sizeof);
}


Expand Down Expand Up @@ -5213,8 +5211,6 @@ protected void onDecodeSaslAuthenticateResponse(
switch (errorCode)
{
case ERROR_NONE:
encoders.add(encodeSyncGroupRequest);
decoder = decodeSyncGroupResponse;
break;
default:
delegate.cleanupStream(traceId, errorCode);
Expand Down Expand Up @@ -5392,6 +5388,8 @@ private void onJoinGroupResponse(
{
this.generationId = generationId;
this.members = members;

doNetworkBegin(traceId, authorization, 0);
}

private void cleanupNetwork(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,28 @@ connect await ROUTED_CLUSTER_SERVER

connected

write 87 # size
write 121 # size
32s # describe configs
0s # v0
${newRequestId}
5s "zilla" # client id
1 # resources
[0x04] # broker resource
1s "0" # "node" topic
2 # configs
3 # configs
28s "group.min.session.timeout.ms" # name
28s "group.max.session.timeout.ms" # name
32s "group.initial.rebalance.delay.ms" # name

read 103 # size
read 143 # size
(int:newRequestId)
0
1 # resources
0s # no error
-1s # error message
[0x04] # broker resource
1s "0" # "0" nodeId
2 # configs
3 # configs
28s "group.min.session.timeout.ms" # name
4s "6000" # value
[0x00] # not read only
Expand All @@ -89,6 +90,11 @@ read 103 # size
[0x00] # not read only
[0x00] # not default
[0x00] # not sensitive
32s "group.initial.rebalance.delay.ms" # name
1s "0" # value
[0x00] # not read only
[0x00] # not default
[0x00] # not sensitive

write 82 # size
11s # join group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,34 +48,40 @@ accepted

connected

read 87 # size
read 121 # size
32s # describe configs
0s # v0
(int:requestId)
5s "zilla" # client id
1 # resources
[0x04] # broker resource
1s "0" # "node" topic
2 # configs
3 # configs
28s "group.min.session.timeout.ms" # name
28s "group.max.session.timeout.ms" # name
32s "group.initial.rebalance.delay.ms" # name

write 103 # size
write 143 # size
${requestId}
0
1 # resources
0s # no error
-1s # error message
[0x04] # broker resource
1s "0" # "0" nodeId
2 # configs
3 # configs
28s "group.min.session.timeout.ms" # name
4s "6000" # value
[0x00] # not read only
[0x00] # not default
[0x00] # not sensitive
28s "group.max.session.timeout.ms" # name
5s "30000" # value
28s "group.max.session.timeout.ms" # name
5s "30000" # value
[0x00] # not read only
[0x00] # not default
[0x00] # not sensitive
32s "group.initial.rebalance.delay.ms" # name
1s "0" # value
[0x00] # not read only
[0x00] # not default
[0x00] # not sensitive
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,27 +59,28 @@ connect await ROUTED_CLUSTER_SERVER

connected

write 87 # size
write 121 # size
32s # describe configs
0s # v0
${newRequestId}
5s "zilla" # client id
1 # resources
[0x04] # broker resource
1s "0" # "node" topic
2 # configs
3 # configs
28s "group.min.session.timeout.ms" # name
28s "group.max.session.timeout.ms" # name
32s "group.initial.rebalance.delay.ms" # name

read 103 # size
read 143 # size
(int:newRequestId)
0
1 # resources
0s # no error
-1s # error message
[0x04] # broker resource
1s "0" # "0" nodeId
2 # configs
3 # configs
28s "group.min.session.timeout.ms" # name
4s "6000" # value
[0x00] # not read only
Expand All @@ -90,6 +91,11 @@ read 103 # size
[0x00] # not read only
[0x00] # not default
[0x00] # not sensitive
32s "group.initial.rebalance.delay.ms" # name
1s "0" # value
[0x00] # not read only
[0x00] # not default
[0x00] # not sensitive

write 82 # size
11s # join group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,34 +49,40 @@ accepted

connected

read 87 # size
read 121 # size
32s # describe configs
0s # v0
(int:requestId)
5s "zilla" # client id
1 # resources
[0x04] # broker resource
1s "0" # "node" topic
2 # configs
3 # configs
28s "group.min.session.timeout.ms" # name
28s "group.max.session.timeout.ms" # name
32s "group.initial.rebalance.delay.ms" # name

write 103 # size
write 143 # size
${requestId}
0
1 # resources
0s # no error
-1s # error message
[0x04] # broker resource
1s "0" # "0" nodeId
2 # configs
3 # configs
28s "group.min.session.timeout.ms" # name
4s "6000" # value
[0x00] # not read only
[0x00] # not default
[0x00] # not sensitive
28s "group.max.session.timeout.ms" # name
5s "30000" # value
28s "group.max.session.timeout.ms" # name
5s "30000" # value
[0x00] # not read only
[0x00] # not default
[0x00] # not sensitive
32s "group.initial.rebalance.delay.ms" # name
1s "0" # value
[0x00] # not read only
[0x00] # not default
[0x00] # not sensitive
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,27 +73,28 @@ connect await ROUTED_DESCRIBE_SERVER

connected

write 87 # size
write 121 # size
32s # describe configs
0s # v0
${newRequestId}
5s "zilla" # client id
1 # resources
[0x04] # broker resource
1s "0" # "node" topic
2 # configs
3 # configs
28s "group.min.session.timeout.ms" # name
28s "group.max.session.timeout.ms" # name
32s "group.initial.rebalance.delay.ms" # name

read 103 # size
read 143 # size
(int:newRequestId)
0
1 # resources
0s # no error
-1s # error message
[0x04] # broker resource
1s "0" # "0" nodeId
2 # configs
3 # configs
28s "group.min.session.timeout.ms" # name
4s "6000" # value
[0x00] # not read only
Expand All @@ -104,6 +105,11 @@ read 103 # size
[0x00] # not read only
[0x00] # not default
[0x00] # not sensitive
32s "group.initial.rebalance.delay.ms" # name
1s "0" # value
[0x00] # not read only
[0x00] # not default
[0x00] # not sensitive

write 82 # size
11s # join group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,34 +63,40 @@ accepted

connected

read 87 # size
read 121 # size
32s # describe configs
0s # v0
(int:requestId)
5s "zilla" # client id
1 # resources
[0x04] # broker resource
1s "0" # "node" topic
2 # configs
3 # configs
28s "group.min.session.timeout.ms" # name
28s "group.max.session.timeout.ms" # name
32s "group.initial.rebalance.delay.ms" # name

write 103 # size
write 143 # size
${requestId}
0
1 # resources
0s # no error
-1s # error message
[0x04] # broker resource
1s "0" # "0" nodeId
2 # configs
3 # configs
28s "group.min.session.timeout.ms" # name
4s "6000" # value
[0x00] # not read only
[0x00] # not default
[0x00] # not sensitive
28s "group.max.session.timeout.ms" # name
5s "30000" # value
28s "group.max.session.timeout.ms" # name
5s "30000" # value
[0x00] # not read only
[0x00] # not default
[0x00] # not sensitive
32s "group.initial.rebalance.delay.ms" # name
1s "0" # value
[0x00] # not read only
[0x00] # not default
[0x00] # not sensitive
Expand Down
Loading