Skip to content

Conversation

@FGasper
Copy link
Collaborator

@FGasper FGasper commented Nov 8, 2024

REVIEWER NOTE: I suggest reviewing individual commits. (I’m going to merge them as such rather than squashing.)

This applies a few small fixes to the change stream’s error handling and improves logging to facilitate easier diagnosis when tests fail.

* If an error happens in readOneChangeEvent, that error will now
be reported via verifier.changeStreamErrChan. Previously the
change stream would just stop.

* The change stream will now stop after reporting an error. Previously
it would keep iterating.
Previously this function’s verifier would on occasion fail because it
would see the `drop` events from TearDownTest. This change causes
that verifier’s change stream to end, which should prevent that
failure.
@FGasper FGasper requested a review from tdq45gj November 8, 2024 14:47
Copy link
Collaborator

@tdq45gj tdq45gj left a comment

Choose a reason for hiding this comment

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

I think those're going to be useful for debugging! LGTM.

@FGasper FGasper merged commit 3f42f7d into mongodb-labs:main Nov 8, 2024
5 checks passed
@FGasper FGasper deleted the REP-5201-further-change-stream-fixes branch November 8, 2024 15:05
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