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

APP-30691 update statstash to report the 99.9 percentile #10

Merged
merged 1 commit into from
Apr 23, 2020

Conversation

vianuevm
Copy link

@vianuevm vianuevm commented Apr 21, 2020

This change is Reviewable

@vianuevm vianuevm force-pushed the vianueva-app-30691 branch 4 times, most recently from 497f73a to 32956fa Compare April 21, 2020 21:09
Copy link
Contributor

@jshore1296 jshore1296 left a 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.

Copy link
Author

@vianuevm vianuevm left a 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?

Copy link
Contributor

@jshore1296 jshore1296 left a 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.

Copy link
Author

@vianuevm vianuevm left a 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. 🤕

Copy link
Contributor

@jshore1296 jshore1296 left a 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: :shipit: complete! all files reviewed, all discussions resolved

@jshore1296 jshore1296 merged commit 1d9ca98 into master Apr 23, 2020
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.

2 participants