[SERVER-45078] Ignore the “term” field in configs provided in replSetReconfig command Created: 12/Dec/19  Updated: 29/Oct/23  Resolved: 21/Jan/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Task Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Pavithra Vetriselvan
Resolution: Fixed Votes: 0
Labels: safe-reconfig-consensus
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Repl 2019-12-30, Repl 2020-01-13, Repl 2020-01-27
Participants:

 Comments   
Comment by Githook User [ 21/Jan/20 ]

Author:

{'email': 'pavithra.vetriselvan@mongodb.com', 'name': 'Pavithra Vetriselvan', 'username': 'pvselvan'}

Message: SERVER-45078 Ignore term in configs provided by replSetReconfig command
Branch: master
https://github.com/mongodb/mongo/commit/202dacee3f31ea539c86e9d818d9bc584b3d54c3

Comment by Pavithra Vetriselvan [ 18/Dec/19 ]

william.schultz mentioned that it might be worth refactoring the ReplSetConfig::_initialize function to take an explicit "term" that overrides any value given in the BSON config object (since we ignore user given terms during reconfig anyway). We can then pass the term from the initiate and reconfig code paths.

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