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: add metric for query restarts #9045

Merged
merged 7 commits into from
May 17, 2022
Merged

Conversation

stevenpyzhang
Copy link
Member

@stevenpyzhang stevenpyzhang commented Apr 20, 2022

Description

Add a metric that reports the number of times a query has restarted streams threads (wherever we return a StreamsUncaughtExceptionHandler.StreamThreadExceptionResponse.REPLACE_THREAD

Also made the retry log more granular in QueryMetadataImpl, the retires count was shared across all streams threads which was kind of annoying when testing this out.

Testing done

Unit testing

bean name

io.confluent.ksql.metrics:type=ksql-queries,query-id=CSAS_TEST_1,ksql_service_id=default_,status=_confluent-ksql-query_CSAS_TEST_1

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 #")

@CLAassistant
Copy link

CLAassistant commented Apr 20, 2022

CLA assistant check
All committers have signed the CLA.

@stevenpyzhang stevenpyzhang force-pushed the query-restart-metric branch 2 times, most recently from c2d027b to dbe454e Compare April 22, 2022 01:03
@stevenpyzhang stevenpyzhang force-pushed the query-restart-metric branch 2 times, most recently from 7efdfb6 to 4105ef9 Compare May 12, 2022 23:34
@stevenpyzhang stevenpyzhang marked this pull request as ready for review May 13, 2022 00:28
@stevenpyzhang stevenpyzhang requested a review from a team as a code owner May 13, 2022 00:28
@stevenpyzhang stevenpyzhang force-pushed the query-restart-metric branch 2 times, most recently from afba69c to 9c12741 Compare May 13, 2022 22:40
@stevenpyzhang stevenpyzhang force-pushed the query-restart-metric branch 2 times, most recently from 1e924bc to 2710ed0 Compare May 17, 2022 16:56
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 b016139 into master May 17, 2022
@stevenpyzhang stevenpyzhang deleted the query-restart-metric branch May 17, 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.

3 participants