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

source-mongodb: additional debug logs when discarding documents #2502

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

williamhbaker
Copy link
Member

@williamhbaker williamhbaker commented Mar 7, 2025

Description:

Debug logging for when documents are discarded because they are not for a tracked operation type, or because the full document is empty. Both of these event types should be fairly low-volume.

Also adds a sanity check when combining fragments from a split event to make sure that a source MongoDB collection is determined, which could otherwise cause a false negative when checking if that collection is among the tracked collections. I have no present reason to think this will ever happen, but it seems worthwhile to verify.

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

(anything that might help someone review this PR)


This change is Reviewable

@williamhbaker williamhbaker changed the title source-mongodb: additional debug logs when discard documents source-mongodb: additional debug logs when discarding documents Mar 7, 2025
Debug logging for when documents are discarded because they are not for a
tracked operation type, or because the full document is empty. Both of these
event types should be fairly low-volume.

Also adds a sanity check when combining fragments from a split event to make
sure that a source MongoDB collection is determined, which could otherwise cause
a false negative when checking if that collection is among the tracked
collections. I have no present reason to think this will ever happen, but it
seems worthwhile to verify.
@williamhbaker williamhbaker merged commit df0e750 into main Mar 7, 2025
55 of 58 checks passed
@williamhbaker williamhbaker deleted the wb/mongodb-logs branch March 7, 2025 17:36
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