-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Storage Execution
-
Storage Execution 2026-06-22, Storage Execution 2026-07-06, Storage Execution 2026-07-20
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Context
We need to compute the document hash on the primary and populate the h field on the insert oplog entry during steady-state replication. SERVER-128506 only produces h on the primary.
The hash is computed over the document affected by the op: the post-image for updates and the pre-image for deletes. Use SHA-256 to start.
Acceptance criteria
- Deletes on the primary set h when the feature flag is on with a hash of the document's pre-image.
- When the feature flag is off, h is not set on deletes.
- We unit-test the above two points.
- depends on
-
SERVER-128506 Create a new optional top-level oplog entry field h (document hash)
-
- Closed
-
- is related to
-
SERVER-128506 Create a new optional top-level oplog entry field h (document hash)
-
- Closed
-
- related to
-
SERVER-130043 Add mixed operation tests for writes to the oplog h field
-
- Backlog
-