-
Notifications
You must be signed in to change notification settings - Fork 141
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
Comments
annahosanna
changed the title
Consul Client issue setting health
Consul Client function Check TTL using GET instead of PUT
Mar 29, 2018
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
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
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
The text was updated successfully, but these errors were encountered: