Skip to content

Commit aebe7d9

Browse files
committed
kafka 3.8 / 3.9
1 parent 71d0761 commit aebe7d9

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

proxy/processor_default.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func (handler *DefaultRequestHandler) mustReply(requestKeyVersion *protocol.Requ
159159
return false, nil, err
160160
}
161161

162-
case 3, 4, 5, 6, 7, 8, 9, 10:
162+
case 3, 4, 5, 6, 7, 8, 9, 10, 11:
163163
// CorrelationID + ClientID
164164
if err = acksReader.ReadAndDiscardHeaderV1Part(reader); err != nil {
165165
return false, nil, err

proxy/protocol/request_key_version.go

+26
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,32 @@ func (r *RequestKeyVersion) ResponseHeaderVersion() int16 {
360360
return 1
361361
case 74: // ListClientMetricsResources
362362
return 1
363+
case 75: // DescribeTopicPartitions
364+
return 1
365+
case 76: // ShareGroupHeartbeat
366+
return 1
367+
case 77: // ShareGroupDescribe
368+
return 1
369+
case 78: // ShareFetch
370+
return 1
371+
case 79: // ShareAcknowledge
372+
return 1
373+
case 80: // AddRaftVoter
374+
return 1
375+
case 81: // RemoveRaftVoter
376+
return 1
377+
case 82: // UpdateRaftVoter
378+
return 1
379+
case 83: // InitializeShareGroupState
380+
return 1
381+
case 84: // ReadShareGroupState
382+
return 1
383+
case 85: // WriteShareGroupState
384+
return 1
385+
case 86: // DeleteShareGroupState
386+
return 1
387+
case 87: // ReadShareGroupStateSummary
388+
return 1
363389
default:
364390
// throw new UnsupportedVersionException("Unsupported API key " + apiKey);
365391
return -1

proxy/protocol/responses.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,10 @@ func createFindCoordinatorResponseSchemaVersions() []Schema {
293293
&CompactArray{Name: coordinatorsKeyName, Ty: findCoordinatorCoordinatorsSchema4},
294294
&SchemaTaggedFields{Name: "response_tagged_fields"},
295295
)
296-
return []Schema{findCoordinatorResponseV0, findCoordinatorResponseV1, findCoordinatorResponseV2, findCoordinatorResponseV3, findCoordinatorResponseV4}
296+
findCoordinatorResponseV5 := findCoordinatorResponseV4
297+
findCoordinatorResponseV6 := findCoordinatorResponseV5
298+
299+
return []Schema{findCoordinatorResponseV0, findCoordinatorResponseV1, findCoordinatorResponseV2, findCoordinatorResponseV3, findCoordinatorResponseV4, findCoordinatorResponseV5, findCoordinatorResponseV6}
297300
}
298301

299302
func modifyMetadataResponse(decodedStruct *Struct, fn config.NetAddressMappingFunc) error {

0 commit comments

Comments
 (0)