Skip to content

Conversation

EtienneBruines
Copy link
Contributor

The previously used DefaultContextTimeout does not work well with the user-definable WaitTime, which can easily exceed this global timeout.

Fixes #2041

tgross
tgross previously approved these changes Mar 25, 2025
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM!

The previously used `DefaultContextTimeout` does not work well with the user-definable `WaitTime`, which can easily exceed this global timeout. By removing the use of a context deadline, we follow the pattern other dependencies (like consul_peerings) use.

This made `DefaultContextTimeout` unused and it was therefore removed.

Fixes hashicorp#2041
Copy link
Member

@sreeram77 sreeram77 left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for your contribution!

@sreeram77 sreeram77 merged commit 9328c5f into hashicorp:main May 19, 2025
1 check passed
@tgross
Copy link
Member

tgross commented May 19, 2025

@EtienneBruines once this lands in a tagged release, we can update the dependency in Nomad as well. There's a small set of pending PRs around security dependencies as well, so I imagine that'll be sooner rather than later.

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.

API peerings timeout for blocking queries

3 participants