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: handle partial aggregation for flexgroup perf metrics #3018

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

rahulguptajss
Copy link
Contributor

No description provided.

cgrinds
cgrinds previously approved these changes Jun 27, 2024
Copy link
Collaborator

@cgrinds cgrinds left a comment

Choose a reason for hiding this comment

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

Looks good! One minor comment about a slightly more idiomatic map

logger.Error().Err(err).Msg("error")
}
} else {
if recordFGFalse[key] == nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is slightly more idiomatic and does one lookup instead of two (after creation)

s, ok := recordFGFalse[key]
if !ok {
	s = set.New()
	recordFGFalse[key] = s
}
s.Add(fgm.GetName())

Hardikl
Hardikl previously approved these changes Jun 27, 2024
@rahulguptajss rahulguptajss dismissed stale reviews from Hardikl and cgrinds via 4d050a8 June 28, 2024 08:06
@cgrinds cgrinds merged commit 34a2517 into main Jun 28, 2024
6 checks passed
@cgrinds cgrinds deleted the rg2-volume-test branch June 28, 2024 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants