Make fle_explain.js test compatible with retryableWrite suites

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration, Server Security
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      retryable write suites inject transaction number in each command sent to the server and the fle_explain.js test fails when comparing explain command results because is not expecting this additional field

      [js_test:fle_explain] doassert@src/mongo/shell/assert.js:49:14
      [js_test:fle_explain] _doassert@src/mongo/shell/assert.js:181:13
      [js_test:fle_explain] assert.eq@src/mongo/shell/assert.js:307:14
      [js_test:fle_explain] @src/mongo/db/modules/enterprise/jstests/fle/fle_explain.js:52:12
      [js_test:fle_explain] @src/mongo/db/modules/enterprise/jstests/fle/fle_explain.js:39:6
      [js_test:fle_explain] Error: expected { "findAndModify" : "test", "query" : [Object], "update" : [Object] } to equal { "findAndModify" : "test", "query" : [Object], "update" : [Object], "txnNumber" : NumberLong(0) }
      [js_test:fle_explain] + expected - actual
      [js_test:fle_explain]
      [js_test:fle_explain]    "update" : {
      [js_test:fle_explain]      "$inc" : {
      [js_test:fle_explain]        "score" : 1
      [js_test:fle_explain]      }
      [js_test:fle_explain] -  }
      [js_test:fle_explain] +  },
      [js_test:fle_explain] +  "txnNumber" : NumberLong(0)
      [js_test:fle_explain]  }
      [js_test:fle_explain] failed to load: src/mongo/db/modules/enterprise/jstests/fle/fle_explain.js
      

      The goal of this task is to adapt the test and remove the TODO associated with this ticket.

            Assignee:
            Unassigned
            Reporter:
            Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: