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

Track the number of times the CircuitBreaker has been tripped #6134

Merged
merged 1 commit into from May 13, 2014

Conversation

dakrone
Copy link
Member

@dakrone dakrone commented May 12, 2014

Fixes #6130

if (in.getVersion().onOrAfter(Version.V_1_2_0)) {
this.trippedCount = in.readVLong();
} else {
this.trippedCount = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be eg. -1 instead of 0 in order to be able to distinguish "never tripped" from "unknown"? (but beware of vLong)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think -1 makes more sense, fixed this, I've changed it to a .readLong() also.

@s1monw
Copy link
Contributor

s1monw commented May 13, 2014

LGTM

1 similar comment
@jpountz
Copy link
Contributor

jpountz commented May 13, 2014

LGTM

@dakrone dakrone merged commit 588ae1b into elastic:master May 13, 2014
@s1monw s1monw removed the review label Jun 18, 2014
@dakrone dakrone deleted the 6130-track-breaker-trips branch September 9, 2014 13:49
@clintongormley clintongormley added >enhancement :Data Management/Stats Statistics tracking and retrieval APIs labels Jun 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Track the number of times the circuit breaker has tripped
4 participants