-
Notifications
You must be signed in to change notification settings - Fork 140
CBG-4432: Implement Delete on the BlipTesterClient and enable delete-related topology tests #7251
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM generally.
Since the tests that are failing are new, I'd be tempted to disable the TestMultiActorConflictDelete/2x_CBL<->SG<->CBS_XDCR_only_1.3
with a skip with a specific investigation. It might be addressed by Adam's changes?
@@ -314,6 +314,32 @@ func (btcc *BlipTesterCollectionClient) GetDoc(docID string) ([]byte, *DocVersio | |||
return latestRev.body, &latestRev.version | |||
} | |||
|
|||
// IsTombstoned returns true if the latest version of the doc is a tombstone. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am actually not sure if couchbase lite uses the terminology tombstone? I think this function is fine but I wonder if the name is confusing because we consider having server tombstones, and sync gateway tombstones as separate things and this is neither.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think tombstone is standard terminology across all of Couchbase for a soft or replicated delete. I'm not sure this is a misuse of the term.
func (btcc *BlipTesterCollectionClient) IsTombstoned(docID string) (bool, error) { | ||
doc, exists := btcc.getClientDoc(docID) | ||
if !exists { | ||
return false, base.ErrNotFound |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is wrapping these errors with the docid going to be helpful if they fail?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so. The caller knows the doc ID and can choose to log it/wrap it at that point
…ecause of poor Windows time resolution
CBG-4432
Integration Tests
GSI=true,xattrs=true
https://jenkins.sgwdev.com/job/SyncGateway-Integration/2873/GSI=true,xattrs=true
https://jenkins.sgwdev.com/job/SyncGateway-Integration/2874/