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

Fix rollup parsing #20

Merged
merged 3 commits into from
Aug 1, 2018
Merged

Fix rollup parsing #20

merged 3 commits into from
Aug 1, 2018

Conversation

shanson7
Copy link
Contributor

@shanson7 shanson7 commented Aug 1, 2018

This tiny little bug caused our rollup chunks to get clobbered when write instances of metrictank restarted.

key_test.go Outdated
@@ -38,3 +38,33 @@ func TestMKeyConversionBothWays(t *testing.T) {
}
}
}

func TestMKeyConversionBothWaysWithArchive(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that should be TestAMKey...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep! Fixed.

Copy link
Contributor

@replay replay left a comment

Choose a reason for hiding this comment

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

LGTM with one comment

@replay replay merged commit aef0018 into raintank:master Aug 1, 2018
@@ -102,7 +102,7 @@ func AMKeyFromString(s string) (AMKey, error) {
return amk, err
}
span, err := strconv.ParseInt(splits[2], 10, 32)
if err == nil {
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

oof

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.

None yet

3 participants