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

Investigate DuplicateKey error for createIndex command in background_unique_indexes.js in tenant migration stepdown/kill/terminate suites

    • ALL
    • Repl 2021-04-19

      The command to create unique index in the test consistently fails the stepdown/kill/terminate suites.

      [js_test:background_unique_indexes] assert: command failed: {
      [js_test:background_unique_indexes] 	"ok" : 0,
      [js_test:background_unique_indexes] 	"errmsg" : "Index build failed: 22cb252c-f1a1-41a9-93cb-c40a12775a08: Collection background_unique_indexes.test ( 3d1f61d2-c66e-4fb3-9aae-29bea82cd109 ) :: caused by :: E11000 duplicate key error collection: background_unique_indexes.test index: x_1 dup key: { x: 24.0 }",
      [js_test:background_unique_indexes] 	"code" : 11000,
      [js_test:background_unique_indexes] 	"codeName" : "DuplicateKey",
      [js_test:background_unique_indexes] 	"keyPattern" : {
      [js_test:background_unique_indexes] 		"x" : 1
      [js_test:background_unique_indexes] 	},
      [js_test:background_unique_indexes] 	"keyValue" : {
      [js_test:background_unique_indexes] 		"x" : 24
      [js_test:background_unique_indexes] 	},
      [js_test:background_unique_indexes] 	"$clusterTime" : {
      [js_test:background_unique_indexes] 		"clusterTime" : Timestamp(1616099326, 143),
      [js_test:background_unique_indexes] 		"signature" : {
      [js_test:background_unique_indexes] 			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      [js_test:background_unique_indexes] 			"keyId" : NumberLong(0)
      [js_test:background_unique_indexes] 		}
      [js_test:background_unique_indexes] 	},
      [js_test:background_unique_indexes] 	"operationTime" : Timestamp(1616099326, 143)
      [js_test:background_unique_indexes] } with original command request: {
      [js_test:background_unique_indexes] 	"createIndexes" : "test",
      [js_test:background_unique_indexes] 	"indexes" : [
      [js_test:background_unique_indexes] 		{
      [js_test:background_unique_indexes] 			"key" : {
      [js_test:background_unique_indexes] 				"x" : 1
      [js_test:background_unique_indexes] 			},
      [js_test:background_unique_indexes] 			"name" : "x_1",
      [js_test:background_unique_indexes] 			"background" : true,
      [js_test:background_unique_indexes] 			"unique" : true
      [js_test:background_unique_indexes] 		}
      [js_test:background_unique_indexes] 	],
      [js_test:background_unique_indexes] 	"lsid" : {
      [js_test:background_unique_indexes] 		"id" : UUID("3c69fd32-e9a4-444a-97ac-8d5f76885aea")
      [js_test:background_unique_indexes] 	},
      [js_test:background_unique_indexes] 	"$clusterTime" : {
      [js_test:background_unique_indexes] 		"clusterTime" : Timestamp(1616099326, 136),
      [js_test:background_unique_indexes] 		"signature" : {
      [js_test:background_unique_indexes] 			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      [js_test:background_unique_indexes] 			"keyId" : NumberLong(0)
      [js_test:background_unique_indexes] 		}
      [js_test:background_unique_indexes] 	},
      [js_test:background_unique_indexes] 	"writeConcern" : {
      [js_test:background_unique_indexes] 		"w" : "majority",
      [js_test:background_unique_indexes] 		"wtimeout" : 300321
      [js_test:background_unique_indexes] 	},
      [js_test:background_unique_indexes] 	"comment" : {
      [js_test:background_unique_indexes] 		"isCmdObjWithTenantId" : true
      [js_test:background_unique_indexes] 	}
      [js_test:background_unique_indexes] } on connection: connection to localhost:20252
      [js_test:background_unique_indexes] _getErrorWithCode@src/mongo/shell/utils.js:25:13
      [js_test:background_unique_indexes] doassert@src/mongo/shell/assert.js:18:14
      [js_test:background_unique_indexes] _assertCommandWorked@src/mongo/shell/assert.js:719:17
      [js_test:background_unique_indexes] assert.commandWorked@src/mongo/shell/assert.js:811:16
      [js_test:background_unique_indexes] @jstests/core/background_unique_indexes.js:53:5
      [js_test:background_unique_indexes] @jstests/core/background_unique_indexes.js:16:2
      

            Assignee:
            lingzhi.deng@mongodb.com Lingzhi Deng
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: