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

MultiUpdateCoordinatorService hangs if _shardsvrCoordinateMultiUpdate is sent on non existent collection

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • ALL
    • v8.0

      The service keeps spinning with the following error:

      [js_test:test] d20041| {"t":{"$date":"2024-06-28T17:57:22.076+00:00"},"s":"I",  "c":"SHARDING", "id":8126400, "svc":"S", "ctx":"MultiUpdateCoordinatorService-0","msg":"Service encountered an error","attr":{"service":"MultiUpdateCoordinatorService","errorKind":"transient","operation":"MultiUpdateCoordinator::stopBlockingMigration","status":"NamespaceNotFound: database test not found","metadata":{"_id":{"$uuid":"eed0dc5d-6eef-443a-abd2-905708dde1f2"},"updateCommand":{"update":"test.coll","updates":[{"q":{"x":1},"u":{"$set":{"y":2}},"multi":true}]},"ns":"test.coll"}}}
      

      This can be reproduced with the following JS test:

      const st = new ShardingTest({mongos: 1, config: 1, shards: 2});
      const mongos = st.s0;
      const coll = mongos.getDB(jsTestName()).coll;
      
      const collName = coll.getFullName();
      
      assert.commandWorked(st.rs0.getPrimary().adminCommand({
          _shardsvrCoordinateMultiUpdate: collName,
          uuid: UUID(),
          command: {update: collName, updates: [{q: {x: 1}, u: {$set: {y: 2}}, multi: true}]}
      }));
      
      st.stop();
      

            Assignee:
            brett.nawrocki@mongodb.com Brett Nawrocki
            Reporter:
            abdul.qadeer@mongodb.com Abdul Qadeer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: