Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: update go-msgpack and net-rpc-msgpackrpc #25201

Merged
merged 1 commit into from
Feb 24, 2025
Merged

deps: update go-msgpack and net-rpc-msgpackrpc #25201

merged 1 commit into from
Feb 24, 2025

Conversation

tgross
Copy link
Member

@tgross tgross commented Feb 24, 2025

Fixes a bug where connections would not be closed on write errors in the msgpack encoder, which would cause the reader end of RPC connections to hang indefinitely. This resulted in clients in widely-distributed geographies being unable to poll for allocation updates.

Fixes: #23305

Fixes a bug where connections would not be closed on write errors in the
msgpack encoder, which would cause the reader end of RPC connections to hang
indefinitely. This resulted in clients in widely-distributed geographies being
unable to poll for allocation updates.

Fixes: #23305
@tgross tgross marked this pull request as ready for review February 24, 2025 18:28
@tgross tgross requested review from a team as code owners February 24, 2025 18:28
@tgross tgross added this to the 1.9.x milestone Feb 24, 2025
Copy link
Member

@gulducat gulducat left a comment

Choose a reason for hiding this comment

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

lgtm!

@@ -64,7 +64,7 @@ require (
github.com/hashicorp/go-kms-wrapping/wrappers/transit/v2 v2.0.12
github.com/hashicorp/go-memdb v1.3.4
github.com/hashicorp/go-metrics v0.5.4
github.com/hashicorp/go-msgpack/v2 v2.1.2
github.com/hashicorp/go-msgpack/v2 v2.1.3
Copy link
Member

Choose a reason for hiding this comment

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

for posterity, the relevant change here is hashicorp/go-msgpack#26, which is theorized to be no-op, but "just in case", yes?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, exactly.

@@ -80,7 +80,7 @@ require (
github.com/hashicorp/hcl/v2 v2.20.2-0.20240517235513-55d9c02d147d
github.com/hashicorp/hil v0.0.0-20210521165536-27a72121fd40
github.com/hashicorp/memberlist v0.5.3
github.com/hashicorp/net-rpc-msgpackrpc/v2 v2.0.0
github.com/hashicorp/net-rpc-msgpackrpc/v2 v2.0.1
Copy link
Member

Choose a reason for hiding this comment

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

and hashicorp/net-rpc-msgpackrpc#15, which does matter, and fixes the issue.

@tgross tgross merged commit cee1135 into main Feb 24, 2025
37 checks passed
@tgross tgross deleted the deps-msgpack branch February 24, 2025 19:23
tgross added a commit that referenced this pull request Feb 24, 2025
Fixes a bug where connections would not be closed on write errors in the
msgpack encoder, which would cause the reader end of RPC connections to hang
indefinitely. This resulted in clients in widely-distributed geographies being
unable to poll for allocation updates.

Fixes: #23305
@tgross
Copy link
Member Author

tgross commented Feb 24, 2025

Backported to:

This was not backported to 1.7.x+ent because that version of Nomad is using the v1 versions of go-msgpack and net-rpc-msgpackrpc

tgross added a commit that referenced this pull request Feb 24, 2025
Manual backport of:
* #25196
* #25197
* #25195
* #25194
* #25191
* #25193
* #25201

for the 1.9.x release branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pending allocations stuck in pending state after adoption by a new deployment
2 participants