[SERVER-63437] Expose all events on 'system.resharding.*' collections when 'showSystemEvents' is true Created: 08/Feb/22  Updated: 29/Oct/23  Resolved: 27/May/22

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

Type: New Feature Priority: Major - P3
Reporter: Randolph Tan Assignee: Bernard Gorman
Resolution: Fixed Votes: 0
Labels: pm1950-m6, sharding-nyc-subteam1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-61887 Add a no-op oplog entry for shardColl... Closed
Duplicate
is duplicated by SERVER-66995 Fix issues with change_stream_util.js Closed
Backwards Compatibility: Fully Compatible
Sprint: QE 2022-05-02, QE 2022-05-16, QE 2022-05-30
Participants:
Linked BF Score: 56

 Description   

Currently, the reshardCollection creates the config.chunks and config.collection entry directly in the config server and doesn't go through the shardCollection command.



 Comments   
Comment by Githook User [ 27/May/22 ]

Author:

{'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}

Message: SERVER-63437 Expose all events on 'system.resharding' collections when 'showSystemEvents' is true

Co-authored-by: Arun Banala <arun.banala@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/2cbe2539dc4ae363686409c7ec8b67fa36eddc29

Comment by Randolph Tan [ 04/Apr/22 ]

kyle.suarez That is correct. This ticket is for emitting the shard collection event for the temp collection since reshardCollection currently bypass the shardCollection command and manually insert the required documents.

Comment by Kyle Suarez [ 04/Apr/22 ]

renctan, our understanding was that we would only report the final reshardCollection event on completion of the operation. If we were to emit change events for each of the individual parts (create temp, make temp sharded, etc.) then there wouldn't even need to be a "reshardCollection" event at all?

CC bernard.gorman, rushan.chen

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