Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-48333

Index build oplog entries being applied during initial sync on the admin.system.version cause initial sync to fail

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc8, 4.7.0
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.4
    • Execution Team 2020-06-15
    • 8

      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.

            Assignee:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: