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

FLE WriteConcernError behavior

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Security 2024-02-19, Security 2024-03-04, Security 2024-03-18, Security 2024-04-01, Security 2024-04-15, Security 2024-04-29, Security 2024-05-13, Security 2024-05-27, Security 2024-06-10

      I think there is still an issue with FLE WriteConcernError after https://jira.mongodb.org/browse/SERVER-81246:

      At the end of bulk_write_update.js, I added

      res = edb.basic.update({_id: 1}, {$set: {middle: "F"}}, {writeConcern: {w: 50, j: false, wtimeout: 100}});
      print("TODO WIP " + tojson(res));
      

      Then depending on the suite, it behaves differently:

      buildscripts/resmoke.py run -j16 --suite fle2_sharding --additionalFeatureFlags featureFlagBulkWriteCommand src/mongo/db/modules/enterprise/jstests/fle2/bulk_write_update.js > /tmp/tmp.txt 2>&1
      
      {
      	"nMatched" : 1,
      	"nUpserted" : 0,
      	"nModified" : 1,
      	"writeConcernError" : {
      		"code" : 100,
      		"codeName" : "UnsatisfiableWriteConcern",
      		"errmsg" : "Not enough data-bearing nodes",
      		"errInfo" : {
      			"writeConcern" : {
      				"w" : 50,
      				"j" : false,
      				"wtimeout" : 100,
      				"provenance" : "clientSupplied"
      			}
      		}
      }
      
      
      buildscripts/resmoke.py run -j16 --suite sharded_collections_jscore_passthrough --additionalFeatureFlags featureFlagBulkWriteCommand src/mongo/db/modules/enterprise/jstests/fle2/bulk_write_update.js > /tmp/tmp2.txt 2>&1
      
      {
      	"nMatched" : 0,
      	"nUpserted" : 0,
      	"nModified" : 0,
      	"writeError" : {
      		"code" : 100,
      		"errmsg" : "Not enough data-bearing nodes; Error details: { writeConcern: { w: 50, j: false, wtimeout: 100, provenance: \"clientSupplied\" } }"
      	}
      }
      

            Assignee:
            erwin.pe@mongodb.com Erwin Pe
            Reporter:
            frederic.vitzikam@mongodb.com Frederic Vitzikam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: