[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: |
|
||||
| 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: (cherry picked from commit 4e2b9c4b8f62f81145483db734b778115a4784e1) |
| Comment by Githook User [ 23/Jul/22 ] |
|
Author: {'name': 'Jason Zhang', 'email': 'jason.zhang@mongodb.com', 'username': 'jz1242'}Message: |