[SERVER-57600] Rewrite apply_ops_lastop.js and lastop.js not to use getLastError Created: 09/Jun/21  Updated: 29/Oct/23  Resolved: 14/Jul/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Irina Yatsenko (Inactive) Assignee: Lingzhi Deng
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Repl 2021-07-12, Repl 2021-07-26
Participants:

 Description   

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.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 14/Jul/21 ]

Author:

{'name': 'Lingzhi Deng', 'email': 'lingzhi.deng@mongodb.com', 'username': 'ldennis'}

Message: SERVER-57600: Rewrite apply_ops_lastop.js and lastop.js
Branch: master
https://github.com/mongodb/mongo/commit/e6ee438de6915c717986bb48bf9a857537ee6bb1

Generated at Thu Feb 08 05:42:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.