[SERVER-31599] Only allow rollbackViaRefetchNoUUID method when in FCV 3.4 Created: 17/Oct/17  Updated: 30/Oct/23  Resolved: 07/Nov/17

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.6.0-rc4

Type: Task Priority: Major - P3
Reporter: William Schultz (Inactive) Assignee: Pavithra Vetriselvan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-31805 rollbackViaRefetchNoUUID fails if rol... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2017-11-13
Participants:

 Description   

Currently we allow selection of the rollback algorithm to use by means of the 'rollbackMethod' server parameter. We should only allow the 'rollbackViaRefetchNoUUID' to be used when a node is in FCV=3.4, and only allow the rollbackViaRefetch' algorithm when the node is in FCV=3.6. This may involve removing the 'rollbackMethod' server parameter, since the algorithm will be bound to FCV, instead of being user selectable.



 Comments   
Comment by Githook User [ 07/Nov/17 ]

Author:

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

Message: SERVER-31599 Rollback method bound to FCV
Branch: master
https://github.com/mongodb/mongo/commit/47ac0405e90508c286cba3ceb4df7238abb21436

Comment by William Schultz (Inactive) [ 02/Nov/17 ]

When, in 3.6, trying to use rollbackMethod=rollbackViaRefetchNoUUID and running the following:

python buildscripts/resmoke.py --basePort=43210 --mongodSetParameter="{rollbackMethod: rollbackViaRefetchNoUUID}" jstests/replsets/rollback_ddl_op_sequences.js

the rollback node will fail with the following message:

Rollback cannot complete at this time (retrying later): InvalidOptions: Attempt to assign UUID to replicated collection: foo.b appliedThrough= { ts: Timestamp 1509636890000|21, t: 2 } minvalid= { ts: Timestamp 1509636911000|4, t: 3}

which is generated in DatabaseImpl::createCollection. This was tested on revision r3.6.0-rc2-8-g411df16.

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