[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}}