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

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

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

      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@mongodb.com Lingzhi Deng
            Reporter:
            irina.yatsenko@mongodb.com Irina Yatsenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: