-
Notifications
You must be signed in to change notification settings - Fork 0
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
APP-30691 update statstash to report the 99.9 percentile #10
Conversation
497f73a
to
32956fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @vianuevm)
statstash.go, line 136 at r1 (raw file):
s.log.Debugf("record bucketKey: %s", bucketKey) if _, err = s.cache.IncrementExisting(bucketKey, delta); err == appwrap.ErrCacheMiss {
Why change increment logic? There's still race conditions in that you're going to lose data if multiple things try to add since only one will get through. We don't need to be super precise here. I'd rather stick to the increment logic since I suspect it's cheaper on the redis side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @jshore1296)
statstash.go, line 136 at r1 (raw file):
Previously, jshore1296 wrote…
Why change increment logic? There's still race conditions in that you're going to lose data if multiple things try to add since only one will get through. We don't need to be super precise here. I'd rather stick to the increment logic since I suspect it's cheaper on the redis side.
I didn't actually, I don't know why it thinks I did. If you diff master they are identical?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @vianuevm)
statstash.go, line 136 at r1 (raw file):
Previously, vianuevm (Michael Vianueva) wrote…
I didn't actually, I don't know why it thinks I did. If you diff master they are identical?
you might need to rebase then.
32956fa
to
0fdacc4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @jshore1296)
statstash.go, line 136 at r1 (raw file):
Previously, jshore1296 wrote…
you might need to rebase then.
Now I feel crazy. I did it, didn't work, pulled down master, up to date, rebase again, it works. 🤕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1.
Reviewable status: complete! all files reviewed, all discussions resolved
This change is