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

Blocking queries responding on the coordinate endpoint, even when there is no change in the response #4988

Open
johncowen opened this issue Nov 22, 2018 · 2 comments
Labels
type/bug Feature does not function as expected

Comments

@johncowen
Copy link
Contributor

Overview of the Issue

I have a single node test setup and when request a blocking query on /v1/coordinate/nodes, it seems to respond roughly every 5-10 seconds even though the payload/response is exactly the same.

Consul info for both Client and Server

Client info 1.4.0, 1.3.0 and 1.2.* at least

Operating system and Environment details

All versions using the official docker image to run.

@pearkes pearkes added the type/bug Feature does not function as expected label Nov 28, 2018
@pearkes
Copy link
Contributor

pearkes commented Nov 28, 2018

@johncowen if you have time it might be great to post a quick repro -- curl commands to run and what the necessary node count etc. should be.

@johncowen
Copy link
Contributor Author

Doh, sorry yeah of course.

I have a single consul server set up that I am using for development using the official docker image. But I'm assuming it will be the same just running against the binary.

I normally use consul agent -bootstrap -server -ui to start this up.

If you run:

curl -i http://localhost:8500/v1/coordinate/nodes?dc=dc-1 (via docker exec in my case)

Notice the X-Consul-Index number, and I get a payload like:

[{"Node":"consul","Segment":"","Coord":{"Vec":[0,0,0,0,0,0,0,0],"Error":1.5,"Adjustment":0,"Height":0.00001}}]

Wait ~30 seconds and re-run the curl command and you'll notice the X-Consul-Index has changed but the payload hasn't. I'm guessing something has changed and hence the blocking query responds, but whatever it is that has changed has no effect on the payload.

Thanks,

John

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Feature does not function as expected
Projects
None yet
Development

No branches or pull requests

2 participants