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

/v1/evaluation/:id/allocations gives inconsistent responses #1951

Closed
jippi opened this issue Nov 7, 2016 · 4 comments
Closed

/v1/evaluation/:id/allocations gives inconsistent responses #1951

jippi opened this issue Nov 7, 2016 · 4 comments
Labels

Comments

@jippi
Copy link
Contributor

jippi commented Nov 7, 2016

Nomad version

Nomad v0.5.0-rc1 ('a8c8199e413d387021a15d7a1400c8b8372124d6+CHANGES')

Operating system and Environment details

Description: Debian GNU/Linux 7.9 (wheezy)
Release: 7.9
Codename: wheezy

Linux version 4.7.6 (root@xxx) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Sun Oct 2 13:15:49 UTC 2016

Issue

Submitting a job through the API, and right away hitting the /v1/evaluation/:id/allocations gives an API response like this ( https://gist.github.com/jippi/1d67a7e2ed924884c69db5e6bca71a72 )

That's the first surprise, the job should be a NOOP, i just read it out, changed a Meta key and submitted it back to Nomad - there should be zero new allocations, and inspecting the job and its allocation also show 0 changes.

Now for the even weirder, after ~30-60s, hitting the /v1/evaluation/:id/allocations endpoint again with the same EvalID returns nothing but [] (which is what I expected to be returned, since the task for a NOOP after all)

Is it intended behavior that I'm seeing or a bug? it only happens for some of the jobs, and adding a random jitter (0-60s) between submitting the job and reading the eval allocations does not yield any consistent behavior either

@dadgar
Copy link
Contributor

dadgar commented Nov 8, 2016

Do you have reproduction steps?

@dadgar dadgar added theme/api HTTP API and SDK issues stage/needs-investigation labels Nov 8, 2016
@jippi
Copy link
Contributor Author

jippi commented Nov 8, 2016

@dadgar i can try and cook something up, but when i hit the bug, it seemed completely random, different jobs every time :o

@jippi
Copy link
Contributor Author

jippi commented Jul 30, 2017

haven't seen this in a long time, closing

@jippi jippi closed this as completed Jul 30, 2017
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants