[SERVER-44598] Shards do not treat the IGNORED version as "intended sharded" Created: 13/Nov/19  Updated: 29/Oct/23  Resolved: 08/Jan/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.6.15, 4.0.13, 4.2.1
Fix Version/s: 4.2.3, 4.3.3, 4.0.17

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Marcos José Grillo Ramirez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-45100 Make the BatchWriteExecutor retry mul... Closed
Problem/Incident
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2, v4.0
Sprint: Sharding 2019-11-18, Sharding 2019-12-02, Sharding 2019-12-30, Sharding 2020-01-13
Participants:
Case:
Linked BF Score: 20

 Description   

Currently, multi-writes in sharding attach shardVersion: IGNORED for multi-writes, which need to be broadcast to more than one shard. Shards, upon receiving shard version IGNORED, unconditionally treat it as "a match" and allow the operation to proceed without triggering a refresh.

In combination with SERVER-32198, this causes the side effect that if a shard is restarted, multi-writes writes will not trigger a refresh on the shard and the shard will treat the collection as unsharded, thus not writing the shard key to the oplog entries. This in turn impacts any change streams on that collection.



 Comments   
Comment by Githook User [ 02/Mar/20 ]

Author:

{'name': 'Kaloian Manassiev', 'username': 'kaloianm', 'email': 'kaloian.manassiev@mongodb.com'}

Message: SERVER-44598 Shards do not treat the IGNORED version as "intended sharded"

(cherry picked from commit 7604dad6da718751ad1f04bae1c839e87a1f8651)
(cherry picked from commit 5868a00ce71d85b6063489909b5ae79bc7369338)
Branch: v4.0
https://github.com/mongodb/mongo/commit/60b4902efe05c84d938f6ac600f406d53de0eb6f

Comment by Githook User [ 29/Jan/20 ]

Author:

{'name': 'Kaloian Manassiev', 'username': 'kaloianm', 'email': 'kaloian.manassiev@mongodb.com'}

Message: Revert "SERVER-44598 Shards do not treat the IGNORED version as "intended sharded""

This reverts commit f2eee7f4879a0dda72b281c8d1d25f2afc4c5eb7.
Branch: v4.0
https://github.com/mongodb/mongo/commit/329618bf849fb8fdeca96703ca691874f8817947

Comment by Githook User [ 27/Jan/20 ]

Author:

{'name': 'Marcos José Grillo Ramírez', 'email': 'marcos.grillo@10gen.com'}

Message: SERVER-44598 Shards do not treat the IGNORED version as "intended sharded"

(cherry picked from commit 7604dad6da718751ad1f04bae1c839e87a1f8651)
(cherry picked from commit 5868a00ce71d85b6063489909b5ae79bc7369338)
Branch: v4.0
https://github.com/mongodb/mongo/commit/f2eee7f4879a0dda72b281c8d1d25f2afc4c5eb7

Comment by Githook User [ 14/Jan/20 ]

Author:

{'name': 'Marcos José Grillo Ramírez', 'email': 'marcos.grillo@10gen.com'}

Message: SERVER-44598 Shards do not treat the IGNORED version as "intended sharded"

(cherry picked from commit 7604dad6da718751ad1f04bae1c839e87a1f8651)
Branch: v4.2
https://github.com/mongodb/mongo/commit/5868a00ce71d85b6063489909b5ae79bc7369338

Comment by Githook User [ 08/Jan/20 ]

Author:

{'name': 'Marcos José Grillo Ramírez', 'email': 'marcos.grillo@10gen.com'}

Message: SERVER-44598 Shards do not treat the IGNORED version as "intended sharded"
Branch: master
https://github.com/mongodb/mongo/commit/7604dad6da718751ad1f04bae1c839e87a1f8651

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