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

Consul Client agent method checkTtl using GET instead of PUT #786

Open
annahosanna opened this issue Mar 26, 2018 · 0 comments
Open

Consul Client agent method checkTtl using GET instead of PUT #786

annahosanna opened this issue Mar 26, 2018 · 0 comments

Comments

@annahosanna
Copy link

annahosanna commented Mar 26, 2018

Calling the .pass() method results in the Qbit Consul Client using Get rather than Put http method. See https://www.consul.io/api/agent/check.html section regarding TTL checks. File affected: AgentEndpoint.java

Test case:
for (ServiceHealth health : consul.health().getAllNodes(service).getResponse()) {
if (health.getService().getId().equals(serviceId)) {
found = true;
consul.agent().pass(serviceId);
}
}

Thank you

@annahosanna annahosanna changed the title Consul Client issue setting health Consul Client function Check TTL using GET instead of PUT Mar 29, 2018
@annahosanna annahosanna changed the title Consul Client function Check TTL using GET instead of PUT Consul Client function checkTtl using GET instead of PUT Mar 29, 2018
@annahosanna annahosanna changed the title Consul Client function checkTtl using GET instead of PUT Consul Client agent method checkTtl using GET instead of PUT Mar 29, 2018
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

No branches or pull requests

1 participant