[SERVER-68184] Use Number instead of NumberLong when indexing in checkWritesOfCommittedTxns Created: 20/Jul/22  Updated: 29/Oct/23  Resolved: 23/Jul/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.1, 4.4.16, 5.0.11, 6.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Jason Zhang Assignee: Jason Zhang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0, v5.3, v5.0, v4.4, v4.2
Sprint: Sharding 2022-07-11
Participants:

 Description   

Currently, in multi_statment_transaction_atomicity_isolation.js test, when we go to run checkWritesOfCommittedTxns, this comparison is done incorrectly due to the use of NumberLong to index within the updatedDocsServerHistory array instead of Numbers. The Javascript interpreter instead added the entries for the updatedDocsServerHistory as properties to the array object instead of objects in the array.



 Comments   
Comment by Githook User [ 03/Aug/22 ]

Author:

{'name': 'Jason Zhang', 'email': 'jason.zhang@mongodb.com', 'username': 'jz1242'}

Message: SERVER-68184 Use Number instead of NumberLong when indexing in checkWritesOfCommittedTxns

(cherry picked from commit 4e2b9c4b8f62f81145483db734b778115a4784e1)
Branch: v4.4
https://github.com/mongodb/mongo/commit/0465653d3fa508be464d7d4f9ddab6982d423e26

Comment by Githook User [ 23/Jul/22 ]

Author:

{'name': 'Jason Zhang', 'email': 'jason.zhang@mongodb.com', 'username': 'jz1242'}

Message: SERVER-68184 Use Number instead of NumberLong when indexing in checkWritesOfCommittedTxns
Branch: master
https://github.com/mongodb/mongo/commit/4e2b9c4b8f62f81145483db734b778115a4784e1

Generated at Thu Feb 08 06:10:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.