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

Primary must only permit creating temporary resharding collection when in FCV >= 4.7

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • Fully Compatible
    • ALL
    • Sharding 2021-03-08, Sharding 2021-03-22, Sharding 2021-04-05
    • 22
    • 1

      It is otherwise possible for a create oplog entry for a temporary resharding collection to replicate to a 4.4 binary.

      [js_test:repro_bf18512] 2020-10-02T21:59:04.841+0000 d20021| {"t":{"$date":"2020-10-02T21:59:04.841+00:00"},"s":"F",  "c":"REPL",     "id":21235,   "ctx":"OplogApplier-0","msg":"Failed to apply batch of operations","attr":{"numOperationsInBatch":1,"firstOperation":{"op":"c","ns":"test.$cmd","ui":{"$uuid":"5b816f8b-137f-47fc-b27d-a80a954fb1f1"},"o":{"create":"system.resharding.test","idIndex":{"v":2,"key":{"_id":1},"name":"_id_"}},"ts":{"$timestamp":{"t":1601675944,"i":2}},"t":1,"wall":{"$date":"2020-10-02T21:59:04.840Z"},"v":2},"lastOperation":{"op":"c","ns":"test.$cmd","ui":{"$uuid":"5b816f8b-137f-47fc-b27d-a80a954fb1f1"},"o":{"create":"system.resharding.test","idIndex":{"v":2,"key":{"_id":1},"name":"_id_"}},"ts":{"$timestamp":{"t":1601675944,"i":2}},"t":1,"wall":{"$date":"2020-10-02T21:59:04.840Z"},"v":2},"failedWriterThread":3,"error":"InvalidNamespace: cannot write to 'test.system.resharding.test'"}}
      [js_test:repro_bf18512] 2020-10-02T21:59:04.841+0000 d20021| {"t":{"$date":"2020-10-02T21:59:04.841+00:00"},"s":"F",  "c":"-",        "id":23095,   "ctx":"OplogApplier-0","msg":"Fatal assertion","attr":{"msgid":34437,"error":"InvalidNamespace: cannot write to 'test.system.resharding.test'","file":"src/mongo/db/repl/oplog_applier_impl.cpp","line":509}}
      [js_test:repro_bf18512] 2020-10-02T21:59:04.841+0000 d20021| {"t":{"$date":"2020-10-02T21:59:04.841+00:00"},"s":"F",  "c":"-",        "id":23096,   "ctx":"OplogApplier-0","msg":"\n\n***aborting after fassert() failure\n\n"}
      

            Assignee:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: