Rewrite apply_ops_lastop.js and lastop.js not to use getLastError

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Repl 2021-07-12, Repl 2021-07-26
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      getLastError() is deprecated and will start returning an error some time soon. From discussion with lingzhi.deng:

      The tests rely on getLastError's lastOp to test causal consistency and write concern waiting. Rewriting the test could be tricky but it may look like

      https://github.com/mongodb/mongo/blob/cda611689a3f956c7f791d2e7de9440f173f4df...

      but fails the applyOps preCondition.

      As part of https://jira.mongodb.org/browse/SERVER-57456 the tests will be disabled.

            Assignee:
            Lingzhi Deng
            Reporter:
            Irina Yatsenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: