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 cli: skip allocs with replacements on job restart into release/1.5.x #19160

Conversation

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

Backport

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

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


The nomad job restart command should skip allocations that already have replacements. Restarting an allocation with a replacement is a no-op because the allocation status is terminal and the command's replacement monitor returns immediatelly.

But by not skipping them, the effective batch size is computed incorrectly.


Overview of commits

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/b-cli-job-restart-skip-replaced-allocs/physically-renewing-dolphin branch from 5f741ab to bba2361 Compare November 23, 2023 19:51
@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/b-cli-job-restart-skip-replaced-allocs/physically-renewing-dolphin branch from 130b8c9 to c6a3deb Compare November 23, 2023 19:51
@vercel vercel bot temporarily deployed to Preview – nomad November 23, 2023 19:57 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad-storybook-and-ui November 23, 2023 20:00 Inactive
@lgfa29
Copy link
Contributor

lgfa29 commented Nov 23, 2023

The AllocListStub struct doesn't have the necessary NextAllocation field in 1.5.x. Since this is not a critical bug I will skip backporting it.

@lgfa29 lgfa29 closed this Nov 23, 2023
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