[SERVER-48333] Index build oplog entries being applied during initial sync on the admin.system.version cause initial sync to fail Created: 20/May/20  Updated: 29/Oct/23  Resolved: 03/Jun/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.4.0-rc8, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2020-06-15
Participants:
Linked BF Score: 8

 Description   

There is a test failure logging this

[ReplicaSetFixture:job2:initsync] | 2020-05-08T02:18:47.571+00:00 E  INITSYNC 21200   [ReplCoordExtern-1] "Initial sync attempt failed","attr":{"attemptsLeft":9,"error":"OplogOperationUnsupported: error applying batch :: caused by :: Applying command to feature compatibility version collection not supported in initial sync: { op: \"c\", ns: \"admin.$cmd\", ui: UUID(\"530a46b7-9cb5-43d1-852b-14304575fb7f\"), o: { startIndexBuild: \"system.version\", indexBuildUUID: UUID(\"0097eb7f-6ade-4581-ae37-a3170059a242\"), indexes: [ { v: 2, key: { a: 1.0 }, name: \"a_1\" } ] }, ts: Timestamp(1588904327, 35), t: 1, wall: new Date(1588904327267), v: 2 }"}

saying that "Initial sync attempt failed" and "Applying command to feature compatibility version collection not supported in initial sync" where the oplog entry is

{startIndexBuild: "system.version",....}

Looking at the relevant code, we appear to have a whitelist of oplog cmds that are allowed on the admin.system.version collection during initial sync. The comment explains that changing the FCV value during initial sync is not allowed. Index builds, however, are not changing the FCV value.

The index build oplog entries - start, commit, abort – should all be added to the whitelist.



 Comments   
Comment by Githook User [ 03/Jun/20 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-48333 Whitelist index build oplog entries for the admin.system.version collection during initial sync

(cherry picked from commit 74131b4e707c902b4ab3ea1428652850c906604e)
Branch: v4.4
https://github.com/mongodb/mongo/commit/f9f44a12b3c712d60881b430510bd5b7d603ca1b

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