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

CBG-4416 Use waitForTombstoneVersion to validate tombstone versions #7252

Merged
merged 3 commits into from
Dec 20, 2024

Conversation

adamcfraser
Copy link
Collaborator

Validates CV for deletes. Uptakes rosmar fix and includes a few test tweaks to ensure CBL version isn't used for lastWrite until CBL deletes are implemented in test framework.

CBG-4416

Copy link
Collaborator

@torcolvin torcolvin left a comment

Choose a reason for hiding this comment

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

LGTM.

Comment on lines +116 to +118
if actualTargetCas != 0 {
base.DebugfCtx(ctx, base.KeyVV, "Target document exists as a tombstone, but does not have _vv, _mou, _sync")
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this useful to leave in debugging? At this point it might or might not get replicated depending on conflict resolution, despite having no _vv

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I left it in as it's a bit of an unusual case that I don't expect us to hit in future (when we've removed the need for the dummy xattr), and it would be useful to see when it continues to show up in that case.

t.Logf("Don't include deleteVersion from Couchbase Lite peers when determining lastWrite %s, CBG-4432", peerName)
continue
}
t.Logf("deleteVersion on peer %s: %+v, implicit version: %+v", peerName, deleteVersion, deleteVersion.ImplicitHLV)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is implicit version helpful to log here? I think logging with %#v will log all the details. Whether or not something has an implicit hlv only indicates whether it was written by couchbase server, not via XDCR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agree - will remove the redundant implicitVersion..

@bbrks bbrks merged commit 9d637bd into release/anemone Dec 20, 2024
36 checks passed
@bbrks bbrks deleted the CBG-4416-rebase branch December 20, 2024 10:44
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