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

Update Mongo/DocDB Ack Checkpoint metrics #5350

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dinujoh
Copy link
Member

@dinujoh dinujoh commented Jan 23, 2025

Description

Update Mongo/DocDB Ack Checkpoint metrics to increment when checkpoint is called and not use total records check pointed so far.

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@@ -131,7 +131,7 @@ private void monitorAcknowledgment(final ExecutorService executorService, final
private void checkpoint(final String resumeToken, final long recordCount) {
LOG.debug("Perform regular checkpointing for resume token {} at record count {}", resumeToken, recordCount);
partitionCheckpoint.checkpoint(resumeToken, recordCount);
this.recordsCheckpointed.increment(recordCount);
this.recordsCheckpointed.increment();
Copy link
Collaborator

Choose a reason for hiding this comment

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

So this metric now means "times" checkpointed instead of "records" checkpointed?

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.

4 participants