Skip to content

Conversation

jianminzhao
Copy link
Contributor

…way Tests

CBL-7402: Port Version Vector Local Wins /Remote Wins Conflict Resolution Tests from Sync Gateway Tests
CBL-7403: Port Version Vector Merge Conflict Resolution Tests from Sync Gateway Tests

…way Tests

CBL-7402: Port Version Vector Local Wins /Remote Wins Conflict Resolution Tests from Sync Gateway Tests
CBL-7403: Port Version Vector Merge Conflict Resolution Tests from Sync Gateway Tests
@cbl-bot
Copy link

cbl-bot commented Oct 13, 2025

Code Coverage Results:

Type Percentage
branches 65.81
functions 78.18
instantiations 71.7
lines 77.24
regions 73.55

@jianminzhao jianminzhao requested review from snej and torcolvin October 14, 2025 01:27
Copy link
Collaborator

@snej snej left a comment

Choose a reason for hiding this comment

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

Just a minor comment about an enum

}

// HLVConflictStatus returns whether two HLVs are in conflict or not
enum HLVConflictStatus : int16_t {
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 necessary? Seems like the same as the versionOrder enum in sourceID.hh

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's from SGW.

},
{
"existing mv",
#if 0
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's fine to just note in this PR that the merge function changed the values, the #if 0 is a bit confusing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried emphasize the difference. The purpose of this PR is to find the differences and assess them. Right?

@jianminzhao jianminzhao merged commit fb1816c into master Oct 14, 2025
8 checks passed
@jianminzhao jianminzhao deleted the cbl-7401 branch October 14, 2025 20:25
jianminzhao added a commit that referenced this pull request Oct 16, 2025
CBL-7499: Invalid binary version ID when saving a resolved conflict doc that has legacy RevID
CBL-7500: Pull lower remote legacy rev but with same generation was not resulted in conflict
CBL-7401: Port Version Vector Conflict Detection Tests from Sync Gateway Tests (#2364)
CBL-7402: Port Version Vector Local Wins /Remote Wins Conflict Resolution Tests from Sync Gateway Tests
CBL-7403: Port Version Vector Merge Conflict Resolution Tests from Sync Gateway Tests
CBL-7551: Rev message contains two ;; in the history for the client-win merge rev (#2366)
CBL-7547: Client-win resolved doc as rev-tree encoded version cannot be pushed back (#2365)
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