[SERVER-40338] Add tests that replacement style and pipeline updates can update the shard key value Created: 26/Mar/19  Updated: 29/Oct/23  Resolved: 29/May/19

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

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

Issue Links:
Depends
depends on SERVER-39158 Change updates to prefer target by th... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2019-05-20, Sharding 2019-06-03
Participants:

 Description   

Currently we cannot correctly update the shard key value for a document for replacement style and pipeline updates because we target using the update field and so would not delete the original document. After SERVER-39158 is done we should be able to correctly do this, so we should test this behavior.



 Comments   
Comment by Githook User [ 29/May/19 ]

Author:

{'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}

Message: SERVER-40338 Add tests for replacement and pipeline style updates to change the shard key
Branch: master
https://github.com/mongodb/mongo/commit/a3e57d14769c5eb83499093f65724af09cbc928d

Comment by Arun Banala [ 22/May/19 ]

james.wahlin janna.golden I've only added tests for replacement style updates, we still need to add tests for pipeline style updates. The few tests that I've added for pipeline updates are mostly related to the routing changes on mongos.

Comment by Janna Golden [ 22/May/19 ]

james.wahlin, yes arun.banala has added some as a part of SERVER-39158. I'll audit our testing and add more as a part of this ticket as well!

Comment by James Wahlin [ 16/May/19 ]

janna.golden - Completion of SERVER-39158 will also allow for change of shard key in pipeline-style updates. Do we need a ticket to add testing for this? (CC: arun.banala)

Comment by Gregory McKeon (Inactive) [ 06/May/19 ]

janna.golden giving this to you as blocked so when query's work wraps, we can work on this.

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