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

Backport of scaling: set Index on nil-job scale status reply into release/1.4.x #18646

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #18637 to be assessed for backporting due to the inclusion of the label backport/1.4.x.

The below text is copied from the body of the original PR.


I noticed this while working on hashicorp/nomad-autoscaler#604 -- When a job went away, the blocking query on /v1/job/{job-id}/scale kept blocking for the full 5 minute timeout, instead of returning "not found" as soon as the job was purged/gc'd.

returning a nil error in a blockingOptions.run()
without increasing the reply Index can cause the
query to block indefinitely (until timeout).

this fixes that happening in Job.ScaleStatus
when the job is deleted -- the job going away
should now return as not-found and provide a new
index for the caller to try if they so please.


Overview of commits

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/bug-scale-status-index/likely-alive-duckling branch from ea76675 to 94c41ab Compare October 3, 2023 17:03
@vercel vercel bot temporarily deployed to Preview – nomad October 3, 2023 17:09 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad-storybook-and-ui October 3, 2023 17:12 Inactive
@hashicorp hashicorp deleted a comment from vercel bot Oct 3, 2023
@gulducat gulducat merged commit e7b96f8 into release/1.4.x Oct 3, 2023
@gulducat gulducat deleted the backport/bug-scale-status-index/likely-alive-duckling branch October 3, 2023 17:27
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.

2 participants