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

timeseries_upserts.js fails when using a sharded collection

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • ALL
    • Execution Team 2024-12-09

      SERVER-95234 makes it so that collections created manually in FSM workloads are now implicitly sharded in sharding suites, whereas previously they would remain unsharded. However, currently this test fails if the collection is sharded.

      [fsm_workload_test:timeseries_upserts] uncaught exception: Error: 2 exceptions were thrown, 2 of which were unique:
      
      [fsm_workload_test:timeseries_upserts]
      
      [fsm_workload_test:timeseries_upserts]         1 thread with tids [1] threw
      
      [fsm_workload_test:timeseries_upserts]         Foreground jstests/concurrency/fsm_workloads/timeseries/timeseries_upserts.js
      
      [fsm_workload_test:timeseries_upserts]         Error: command failed: {
      
      [fsm_workload_test:timeseries_upserts]         	"nModified" : 0,
      
      [fsm_workload_test:timeseries_upserts]         	"n" : 0,
      
      [fsm_workload_test:timeseries_upserts]         	"writeErrors" : [
      
      [fsm_workload_test:timeseries_upserts]         		{
      
      [fsm_workload_test:timeseries_upserts]         			"index" : 0,
      
      [fsm_workload_test:timeseries_upserts]         			"code" : 61,
      
      [fsm_workload_test:timeseries_upserts]         			"errmsg" : "Failed to target upsert by query :: could not extract exact shard key"
      
      [fsm_workload_test:timeseries_upserts]         		}
      
      [fsm_workload_test:timeseries_upserts]         	],
      
      [fsm_workload_test:timeseries_upserts]         	"ok" : 1,
      
      [fsm_workload_test:timeseries_upserts]         	"$clusterTime" : {
      
      [fsm_workload_test:timeseries_upserts]         		"clusterTime" : Timestamp(1730411343, 65),
      
      [fsm_workload_test:timeseries_upserts]         		"signature" : {
      
      [fsm_workload_test:timeseries_upserts]         			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      
      [fsm_workload_test:timeseries_upserts]         			"keyId" : NumberLong(0)
      
      [fsm_workload_test:timeseries_upserts]         		}
      
      [fsm_workload_test:timeseries_upserts]         	},
      
      [fsm_workload_test:timeseries_upserts]         	"operationTime" : Timestamp(1730411343, 65),
      
      [fsm_workload_test:timeseries_upserts]         	"upserted" : [ ]
      
      [fsm_workload_test:timeseries_upserts]         } with original command request: {
      
      [fsm_workload_test:timeseries_upserts]         	"update" : "fsmcoll0",
      
      [fsm_workload_test:timeseries_upserts]         	"updates" : [ ],
      
      [fsm_workload_test:timeseries_upserts]         	"lsid" : {
      
      [fsm_workload_test:timeseries_upserts]         		"id" : UUID("300638df-5348-4560-a30c-13cc6b887174")
      
      [fsm_workload_test:timeseries_upserts]         	}
      
      [fsm_workload_test:timeseries_upserts]         } on connection: connection to localhost:20008
      
      [fsm_workload_test:timeseries_upserts]
      
      [fsm_workload_test:timeseries_upserts]         _getErrorWithCode@src/mongo/shell/utils.js:24:13
      
      [fsm_workload_test:timeseries_upserts]         doassert@src/mongo/shell/assert.js:18:14
      
      [fsm_workload_test:timeseries_upserts]         _assertCommandWorked@src/mongo/shell/assert.js:772:25
      
      [fsm_workload_test:timeseries_upserts]         assert.commandWorked@src/mongo/shell/assert.js:866:16
      
      [fsm_workload_test:timeseries_upserts]         $config</updateMany/<@/data/mci/c76bed8e5d1eb7e19cd142d748d5d793/src/jstests/concurrency/fsm_workloads/timeseries/timeseries_upserts.js:24:20
      
      [fsm_workload_test:timeseries_upserts]         retryOnRetryableError@src/mongo/shell/utils.js:77:20
      
      [fsm_workload_test:timeseries_upserts]         updateMany@/data/mci/c76bed8e5d1eb7e19cd142d748d5d793/src/jstests/concurrency/fsm_workloads/timeseries/timeseries_upserts.js:23:30
      
      [fsm_workload_test:timeseries_upserts]         runFSM@/data/mci/c76bed8e5d1eb7e19cd142d748d5d793/src/jstests/concurrency/fsm_libs/fsm.js:181:20
      
      [fsm_workload_test:timeseries_upserts]         @eval:8:19
      
      [fsm_workload_test:timeseries_upserts]         main@/data/mci/c76bed8e5d1eb7e19cd142d748d5d793/src/jstests/concurrency/fsm_libs/worker_thread.js:249:23
      
      [fsm_workload_test:timeseries_upserts]
      
      [fsm_workload_test:timeseries_upserts]
      
      [fsm_workload_test:timeseries_upserts]         1 thread with tids [4] threw
      [fsm_workload_test:timeseries_upserts]         Foreground jstests/concurrency/fsm_workloads/timeseries/timeseries_upserts.js
      
      [fsm_workload_test:timeseries_upserts]         Error: command failed: {
      
      [fsm_workload_test:timeseries_upserts]         	"nModified" : 0,
      
      [fsm_workload_test:timeseries_upserts]         	"n" : 0,
      
      [fsm_workload_test:timeseries_upserts]         	"writeErrors" : [
      
      [fsm_workload_test:timeseries_upserts]         		{
      
      [fsm_workload_test:timeseries_upserts]         			"index" : 0,
      
      [fsm_workload_test:timeseries_upserts]         			"code" : 61,
      
      [fsm_workload_test:timeseries_upserts]         			"errmsg" : "Failed to target upsert by query :: could not extract exact shard key"
      
      [fsm_workload_test:timeseries_upserts]         		}
      
      [fsm_workload_test:timeseries_upserts]         	],
      
      [fsm_workload_test:timeseries_upserts]         	"ok" : 1,
      
      [fsm_workload_test:timeseries_upserts]         	"$clusterTime" : {
      
      [fsm_workload_test:timeseries_upserts]         		"clusterTime" : Timestamp(1730411343, 65),
      
      [fsm_workload_test:timeseries_upserts]         		"signature" : {
      
      [fsm_workload_test:timeseries_upserts]         			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      
      [fsm_workload_test:timeseries_upserts]         			"keyId" : NumberLong(0)
      
      [fsm_workload_test:timeseries_upserts]         		}
      
      [fsm_workload_test:timeseries_upserts]         	},
      
      [fsm_workload_test:timeseries_upserts]         	"operationTime" : Timestamp(1730411343, 65),
      
      [fsm_workload_test:timeseries_upserts]         	"upserted" : [ ]
      
      [fsm_workload_test:timeseries_upserts]         } with original command request: {
      
      [fsm_workload_test:timeseries_upserts]         	"update" : "fsmcoll0",
      
      [fsm_workload_test:timeseries_upserts]         	"updates" : [ ],
      
      [fsm_workload_test:timeseries_upserts]         	"lsid" : {
      
      [fsm_workload_test:timeseries_upserts]         		"id" : UUID("4ec594d2-90b5-459a-9b7b-956ef2744423")
      
      [fsm_workload_test:timeseries_upserts]         	}
      
      [fsm_workload_test:timeseries_upserts]         } on connection: connection to localhost:20007
      
      [fsm_workload_test:timeseries_upserts]
      
      [fsm_workload_test:timeseries_upserts]         _getErrorWithCode@src/mongo/shell/utils.js:24:13
      
      [fsm_workload_test:timeseries_upserts]         doassert@src/mongo/shell/assert.js:18:14
      
      [fsm_workload_test:timeseries_upserts]         _assertCommandWorked@src/mongo/shell/assert.js:772:25
      
      [fsm_workload_test:timeseries_upserts]         assert.commandWorked@src/mongo/shell/assert.js:866:16
      
      [fsm_workload_test:timeseries_upserts]         $config</updateMany/<@/data/mci/c76bed8e5d1eb7e19cd142d748d5d793/src/jstests/concurrency/fsm_workloads/timeseries/timeseries_upserts.js:24:20
      
      [fsm_workload_test:timeseries_upserts]         retryOnRetryableError@src/mongo/shell/utils.js:77:20
      
      [fsm_workload_test:timeseries_upserts]         updateMany@/data/mci/c76bed8e5d1eb7e19cd142d748d5d793/src/jstests/concurrency/fsm_workloads/timeseries/timeseries_upserts.js:23:30
      
      [fsm_workload_test:timeseries_upserts]         runFSM@/data/mci/c76bed8e5d1eb7e19cd142d748d5d793/src/jstests/concurrency/fsm_libs/fsm.js:181:20
      
      [fsm_workload_test:timeseries_upserts]         @eval:8:19
      
      [fsm_workload_test:timeseries_upserts]         main@/data/mci/c76bed8e5d1eb7e19cd142d748d5d793/src/jstests/concurrency/fsm_libs/worker_thread.js:249:23
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: