[SERVER-28419] Do not compute operationTime if Replica Set does not propagate clusterTime Created: 21/Mar/17  Updated: 06/Dec/22  Resolved: 22/Mar/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Misha Tyulenev Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Sharding
Backwards Compatibility: Fully Compatible
Participants:

 Description   

dbcommands.cpp _computeOperationTime method uses opTime from the opLog to compute the operation time. However ReplicaSet will not return clusterTime if its not a member of a sharded cluster. Hence operationTime also should NOT be appended in this case.
Add and use a method on logicalCLock to inidicate that it can sign cluster time and consequently needs operationTime in command reply.


Generated at Thu Feb 08 04:18:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.