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

[CDAP-21046][CDAP-21048] Fixing flow control metrics on startup: #15737

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

ritwiksahani
Copy link
Contributor

@ritwiksahani ritwiksahani commented Nov 18, 2024

Due to the following bugs:

  1. https://cdap.atlassian.net/browse/CDAP-21048
  2. https://cdap.atlassian.net/browse/CDAP-21046

launching and running count metrics are calculated incorrectly on service restarts.

Moving the logic to launch active runs and compute metrics to non sharded main class ProgramNotificationSubscriberService.
Also publishing launching count metric on every cleanup not just when records are removed.
On startup the latest metrics are recomputed and published as well.

Testing

  • Tested by replicating current scenario on a dummy pipeline.
  • Pushed local code changes to the server.
    Launching pipeline :
    6SLsR9vBXsU4ZG2
  • Restarted a running/launching pipeline.
  • Post restart metrics were computed correclty.
    Post restart:
    6CGNcmE3KQCceij
  • Post completion the running count went back to 0.
    Post completion:
    BLiLK5VzLVdK4NB

@ritwiksahani ritwiksahani force-pushed the CDAP-21046 branch 2 times, most recently from b3ee8fe to 9936444 Compare November 18, 2024 12:57
@itsankit-google itsankit-google added the build Triggers github actions build label Nov 19, 2024
@ritwiksahani ritwiksahani force-pushed the CDAP-21046 branch 2 times, most recently from 59deeb7 to dff5da9 Compare November 19, 2024 10:46
Copy link

sonarcloud bot commented Nov 19, 2024

@ritwiksahani ritwiksahani force-pushed the CDAP-21046 branch 2 times, most recently from 426f3ad to 3e29800 Compare November 20, 2024 08:39
@ritwiksahani ritwiksahani merged commit b123027 into develop Nov 21, 2024
9 of 10 checks passed
@ritwiksahani ritwiksahani deleted the CDAP-21046 branch November 21, 2024 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Triggers github actions build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants