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

Replica Set re-sync fails if --notablescan is active

    • Replication
    • ALL

      This only fails for collections with no _id index. Such collections are not created by default in version 2.4+.

      Discussion here: https://groups.google.com/d/topic/mongodb-user/uC4bYdbmabM/discussion

      In a replicaset it's not possible to set the notablescans flag on the master because the slaves are unable to read capped collections.

      Here is the corresponding part of the log:

      > Tue Jan 17 20:00:23 [rsSync] replSet initial sync cloning db: admin
      > Tue Jan 17 20:00:24 [rsSync] replSet initial sync cloning db: config
      > Tue Jan 17 20:00:24 [rsSync] replSet initial sync query minValid
      > Tue Jan 17 20:00:32 [rsSync] replSet initial oplog application from a2.serv:27017 starting at Jan 17 07:03:38:6 to Jan 17 20:00:24:8
      > Tue Jan 17 20:00:33 [rsSync] replSet initial sync failing, error applying oplog 10111 table scans not allowed:myDatabase.myCappedCollection
      > Tue Jan 17 20:00:33 [rsSync] replSet initial sync failed during applyoplog

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            ahofmann Ansgar Hofmann
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: