Skip to content

[DocDB] Duplicate value check during create unique index should use IntraWriteId #30332

@amitanandaiyer

Description

@amitanandaiyer

Jira Link: DB-20215

Description

Duplicate value check during create-unique-index codepath compares entries based on their HybridTime.

HybridTime does not capture the order within a batch of writes performed as a single transaction. e.g. Delete + Insert.

We should use the DocHybridTime to ensure that the correct order is enforced within the transaction to check for uniqueness.

Issue Type

kind/bug

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions