Skip to content

Update dependencies#465

Open
antoninbas wants to merge 2 commits into
vmware:mainfrom
antoninbas:update-dependencies
Open

Update dependencies#465
antoninbas wants to merge 2 commits into
vmware:mainfrom
antoninbas:update-dependencies

Conversation

@antoninbas
Copy link
Copy Markdown
Member

  • Update go to 1.26
  • Update go.mod dependencies

* Update go to 1.26
* Update go.mod dependencies

Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
Comment thread go.mod
k8s.io/component-base v0.31.0
k8s.io/klog/v2 v2.130.1
go.uber.org/mock v0.6.0
google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is required by K8s when bumping up to 0.36.1 modules

sarama v1.50.2 enables ApiVersionsRequest by default (KIP-511):
the client now sends an ApiVersionsRequest to the broker as part
of the initial connection handshake, before any MetadataRequest.

The test was using seedBroker.Returns() which queues responses in
FIFO order. The mock broker consumed the queued MetadataResponse
for the ApiVersionsRequest, leaving nothing for the subsequent
MetadataRequest — causing both sides to block indefinitely.

Replace Returns() with SetHandlerByMap() so each request type is
routed to the correct response handler regardless of arrival order.

Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant