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

Index build invariant with {prepareUnique: true}

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc4, 6.1.0-rc0
    • Affects Version/s: 6.0.0-rc0, 6.1.0-rc0
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.0
    • Execution Team 2022-05-02
    • 150

      [js_test:repro] d20020| {"t":{"$date":"2022-04-25T15:06:10.901+00:00"},"s":"I",  "c":"STORAGE",  "id":20649,   "ctx":"IndexBuildsCoordinatorMongod-0","msg":"Index build: failed","attr":{"buildUUID":{"uuid":{"$uuid":"9d664a1a-9389-4287-b8c6-f611f64b890c"}},"collectionUUID":{"uuid":{"$uuid":"042f6fc1-b3d1-4f58-a403-d695b28187bc"}},"namespace":"test.abc","error":{"code":11000,"codeName":"DuplicateKey","errmsg":"E11000 duplicate key error collection: test.abc index: a_1 dup key: { a: 123.0 }","keyPattern":{"a":1},"keyValue":{"a":123}}}}
      [js_test:repro] d20020| {"t":{"$date":"2022-04-25T15:06:10.902+00:00"},"s":"F",  "c":"ASSERT",   "id":23081,   "ctx":"IndexBuildsCoordinatorMongod-0","msg":"Invariant failure","attr":{"expr":"status.isA<ErrorCategory::Interruption>() || status.isA<ErrorCategory::ShutdownError>() || status.code() == ErrorCodes::CannotCreateIndex","msg":"Unexpected error code during index build cleanup: DuplicateKey{ keyPattern: { a: 1.0 }, keyValue: { a: 123.0 } }: E11000 duplicate key error collection: test.abc index: a_1 dup key: { a: 123.0 }","file":"src/mongo/db/index_builds_coordinator.cpp","line":2291}}
      

            Assignee:
            yuhong.zhang@mongodb.com Yuhong Zhang
            Reporter:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: