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

feat: clean up processing log metric #9105

Merged
merged 3 commits into from
May 12, 2022

Conversation

stevenpyzhang
Copy link
Member

@stevenpyzhang stevenpyzhang commented May 10, 2022

Description

Follow up to #9035
Clean up the metrics by closing all processing logs associated with a push query when closing them.

Testing done

unit test, updated integration test
Verified metrics disappear in jconsole when terminating queries

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

@stevenpyzhang stevenpyzhang requested a review from a team as a code owner May 10, 2022 16:53
@stevenpyzhang stevenpyzhang force-pushed the clean-up-processing-log-metric branch from bb012ce to 28456d8 Compare May 11, 2022 01:30
@stevenpyzhang stevenpyzhang force-pushed the clean-up-processing-log-metric branch from 28456d8 to 03f4265 Compare May 11, 2022 01:44
@stevenpyzhang stevenpyzhang force-pushed the clean-up-processing-log-metric branch from 3f56bde to a64416a Compare May 11, 2022 03:25
@@ -115,6 +116,14 @@ public synchronized Collection<ProcessingLogger> getLoggers() {
return processingLoggers.values();
}

@Override
public synchronized Collection<ProcessingLogger> getLoggersWithSubstring(final String substr) {
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 we should be a bit more careful and do a prefix match here, and rename to getLoggersWithPrefix

Copy link
Member Author

Choose a reason for hiding this comment

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

updated to getLoggersWithPrefix

Copy link
Contributor

@rodesai rodesai left a comment

Choose a reason for hiding this comment

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

LGTM

@stevenpyzhang stevenpyzhang merged commit 926e440 into master May 12, 2022
@stevenpyzhang stevenpyzhang deleted the clean-up-processing-log-metric branch May 12, 2022 21:22
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