Skip to content

Commit 9e5b7b4

Browse files
committed
Added a line of motivation for updating cluster_time
1 parent e42c809 commit 9e5b7b4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/unified_format.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1880,7 +1880,8 @@ def _run_scenario(self, spec, uri=None):
18801880
# process initialData
18811881
if "initialData" in self.TEST_SPEC:
18821882
self.insert_initial_data(self.TEST_SPEC.get("initialData", []))
1883-
# advance cluster times of session entities
1883+
# advance cluster times of session entities,
1884+
# to ensure consistency in transactions against a sharded deployment,
18841885
cluster_time = self.client.admin.command("ping").get("$clusterTime")
18851886
if cluster_time:
18861887
for entity in self.entity_map._entities.values():

0 commit comments

Comments
 (0)