Skip to content

Fix #2378 use DocumentId when checking replacement#2390

Merged
tatu-at-datastax merged 2 commits intomainfrom
ajm/fix-2378-replace-diff-id-error
Feb 12, 2026
Merged

Fix #2378 use DocumentId when checking replacement#2390
tatu-at-datastax merged 2 commits intomainfrom
ajm/fix-2378-replace-diff-id-error

Conversation

@amorton
Copy link
Contributor

@amorton amorton commented Feb 12, 2026

When we are comparing documentId between a match and replacement document we need to use DocumentID because it has the correct comparison schematics.

More work to be done to refactor / improve this area after the basic fix for the bug.

Which issue(s) this PR fixes:
Fixes #2378

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

When we are comparing documentId between a match and replacement
document we need to use DocumentID because it has the correct comparison
schematics.

More work to be done to refactor / improve this area after
the basic fixe for the bug.
@amorton amorton requested a review from a team as a code owner February 12, 2026 02:02
@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

📈 Integration Test Coverage Delta vs Main Branch (dse69-it)

Metric Value
Main Branch 70.71%
This PR 70.73%
Delta 🟢 +0.02%
✅ Coverage improved!

@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

Integration Test Coverage Report (dse69-it)

Overall Project 70.73% 🍏
Files changed 100% 🍏

File Coverage
DocumentUpdater.java 92.06% 🍏
DocumentId.java 63.64% 🍏

@github-actions
Copy link
Contributor

📈 Unit Test Coverage Delta vs Main Branch

Metric Value
Main Branch 50.26%
This PR 50.27%
Delta 🟢 +0.01%
✅ Coverage improved!

@github-actions
Copy link
Contributor

Unit Test Coverage Report

Overall Project 50.27% 🍏
Files changed 100% 🍏

File Coverage
DocumentUpdater.java 97.35% 🍏
DocumentId.java 79.77% 🍏

@github-actions
Copy link
Contributor

📈 Integration Test Coverage Delta vs Main Branch (hcd-it)

Metric Value
Main Branch 72.47%
This PR 72.48%
Delta 🟢 +0.01%
✅ Coverage improved!

@github-actions
Copy link
Contributor

Integration Test Coverage Report (hcd-it)

Overall Project 72.48% 🍏
Files changed 100% 🍏

File Coverage
DocumentUpdater.java 92.06% 🍏
DocumentId.java 63.64% 🍏

Copy link
Contributor

@tatu-at-datastax tatu-at-datastax left a comment

Choose a reason for hiding this comment

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

LGTM

@tatu-at-datastax tatu-at-datastax merged commit 975a078 into main Feb 12, 2026
3 checks passed
@tatu-at-datastax tatu-at-datastax deleted the ajm/fix-2378-replace-diff-id-error branch February 12, 2026 20:47
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.

Command replaceOne with upsert true and same Id

2 participants