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

stats: use a release-assert when histogram-merging tries to run concurrently #3228

Conversation

jmarantz
Copy link
Contributor

Description:

Converts an ASSERT to a RELEASE_ASSERT, as it could be related to memory corruption observed in #3223 . This was originally an if-statement blocking the corruption in @ramaraochavali histogram PR but per @mrice32 we changed it to an ASSERT, which means if it happens in production, it's a silent corruption.

Risk Level: Low

Testing: //test/... pass. but test/extensions/stats_sinks/metrics_service:metrics_service_integration_test fails with this assertion when run under valgrind.

Docs Changes: N/A

Release Notes: N/A

Signed-off-by: Joshua Marantz <jmarantz@google.com>
@mattklein123
Copy link
Member

Can we hold on merging this for a little bit. In general, we don't have asserts like this, as it's a program invariant that shouldn't happen and we should fix the underlying issue. I already have some ideas on what might be wrong but I'm still poking.

@jmarantz
Copy link
Contributor Author

i'm in no rush :) Definitely agree we should fix the underlying issue that allows this to occur.

@mattklein123
Copy link
Member

@jmarantz I'm going to close this for now. Let's reopen later if we think we really need this. Would rather just keep debugging for now.

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.

3 participants