[SERVER-58412] Changing settings.chainingEnabled in replica set configuration should affect change in sync sources Created: 11/Jul/21  Updated: 29/Oct/23  Resolved: 05/Aug/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.11, 5.0.4, 5.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Cailin Nelson Assignee: Samyukta Lanka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-39621 Disabled chaining should enforce sync... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0, v4.4, v4.2
Sprint: Repl 2021-07-26, Repl 2021-08-09
Participants:
Case:

 Description   

It appears that changing the value of settings.chaininingEnabled does not cause each member of the replica set to re-evaluate it's sync source. It seems reasonable that changing the value of this setting should cause each member to re-evaluate it's sync source and (if necessary) choose a sync source in accordance with the new value.



 Comments   
Comment by Githook User [ 23/Nov/21 ]

Author:

{'name': 'Samy Lanka', 'email': 'samy.lanka@mongodb.com', 'username': 'lankas'}

Message: SERVER-58412 Test that disabling chaining causes nodes to re-evaluate their sync source

(cherry picked from commit 37303e4b620783489fa5cf13eaa55d2562045992)
(cherry picked from commit 6202c8d7aacd4001110ed32fb53bfd190e458003)
Branch: v4.4
https://github.com/mongodb/mongo/commit/321ce07ac36cc461c330bd42671abe76eaa56cad

Comment by Githook User [ 04/Oct/21 ]

Author:

{'name': 'Samy Lanka', 'email': 'samy.lanka@mongodb.com', 'username': 'lankas'}

Message: SERVER-58412 Test that disabling chaining causes nodes to re-evaluate their sync source

(cherry picked from commit 37303e4b620783489fa5cf13eaa55d2562045992)
Branch: v5.0
https://github.com/mongodb/mongo/commit/6202c8d7aacd4001110ed32fb53bfd190e458003

Comment by Githook User [ 05/Aug/21 ]

Author:

{'name': 'Samy Lanka', 'email': 'samy.lanka@mongodb.com', 'username': 'lankas'}

Message: SERVER-58412 Test that disabling chaining causes nodes to re-evaluate their sync source
Branch: master
https://github.com/mongodb/mongo/commit/37303e4b620783489fa5cf13eaa55d2562045992

Comment by Samyukta Lanka [ 04/Aug/21 ]

This was resolved by SERVER-39621 in v4.4+. It was just backported to v4.2, so should be released in 4.2.16. I'm repurposing this ticket to add a test for this behavior on all branches going back to v4.2.

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