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

Log warning if Consul failover interceptor is set multiple times #308

Merged
merged 2 commits into from
Dec 17, 2023

Conversation

sleberknight
Copy link
Member

  • Log a warning in Consul if both withMultipleHostAndPort and withFailoverInterceptor are called when building a Consul instance.
  • This is important because calling them both results in a "last one wins" scenario, since the last method called sets the failover interceptor.

Closes #306

* Log a warning in Consul if both withMultipleHostAndPort and
  withFailoverInterceptor are called when building a Consul
  instance.
* This is important because calling them both results in a
  "last one wins" scenario, since the last method called
  sets the failover interceptor.

Closes #306
@sleberknight sleberknight self-assigned this Dec 17, 2023
Copy link

@terezivy terezivy merged commit 983668f into master Dec 17, 2023
5 checks passed
@terezivy terezivy deleted the 306-log-warning-if-failover-interceptor-already-set branch December 17, 2023 16:26
sleberknight added a commit that referenced this pull request Dec 17, 2023
* Log warning if Consul failover interceptor is set multiple times

* Log a warning in Consul if both withMultipleHostAndPort and
  withFailoverInterceptor are called when building a Consul
  instance.
* This is important because calling them both results in a
  "last one wins" scenario, since the last method called
  sets the failover interceptor.

Closes #306

* Update javadocs regarding overriding failover interceptors
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.

Log warning if ConsulFailoverInterceptor is configured multiple times
2 participants