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

FLE WriteConcernError behavior

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Server Security

    Description

      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\" } }"
      	}
      }
      

      Attachments

        Activity

          People

            backlog-server-security Backlog - Security Team
            frederic.vitzikam@mongodb.com Frederic Vitzikam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: