[SERVER-70100] Ensure that shardCollection emits an oplog event on commit time at least once in case of step-down Created: 29/Sep/22  Updated: 29/Oct/23  Resolved: 28/Dec/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 6.0.0
Fix Version/s: 6.0.4, 6.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Paolo Polato Assignee: Paolo Polato
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Duplicate
is duplicated by SERVER-72277 _collectionUUID should be initialised... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.2, v6.0
Sprint: Sharding EMEA 2022-11-28, Sharding EMEA 2022-12-12
Participants:

 Description   

SERVER-61887 introduced the insertion of an oplog entry into the CreateCollectionCoordinator when the DDL operation gets committed into the config server: nevertheless, if the _commit() function gets interrupted by a stepdown event just before or during the execution of notifyChangeStreamsOnShardCollection(), it is possible to complete shardCollection() without ever emitting such oplog entry.



 Comments   
Comment by Githook User [ 22/Dec/22 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-70100 Ensure at-least-once emission of oplog entry on shardCollection() completion
Branch: v6.0
https://github.com/mongodb/mongo/commit/f132d69031b6554d22aef026c941eab4ddff24ca

Comment by Githook User [ 20/Dec/22 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: Revert "SERVER-70100 Ensure at-least-once emission of oplog entry on shardCollection() completion"

This reverts commit 3972acca68f5fbb20e9395a8702a25386977820d.
Branch: v6.0
https://github.com/mongodb/mongo/commit/7fb90620aa832db2c1835d800333959077e431df

Comment by Githook User [ 20/Dec/22 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-70100 Ensure at-least-once emission of oplog entry on shardCollection() completion
Branch: v6.0
https://github.com/mongodb/mongo/commit/3972acca68f5fbb20e9395a8702a25386977820d

Comment by Githook User [ 07/Dec/22 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-70100 Ensure at-least-once emission of oplog entry on shardCollection() completion
Branch: master
https://github.com/mongodb/mongo/commit/2ebf2d3e3cbe025baf2bdea1c70aa494df97b4e0

Generated at Thu Feb 08 06:15:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.