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.6.x #18648

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.6.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/adversely-right-gobbler branch from 271ea2e to 97490fd Compare October 3, 2023 17:04
@vercel vercel bot temporarily deployed to Preview – nomad-storybook-and-ui October 3, 2023 17:14 Inactive
@hashicorp hashicorp deleted a comment from vercel bot Oct 3, 2023
@gulducat gulducat merged commit c1f9e6f into release/1.6.x Oct 3, 2023
25 of 26 checks passed
@gulducat gulducat deleted the backport/bug-scale-status-index/adversely-right-gobbler 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.

None yet

2 participants