[SERVER-65772] Use of BufReader in HashLookupStage isn't compatible with s390x architecture Created: 19/Apr/22  Updated: 29/Oct/23  Resolved: 21/Apr/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc2, 6.1.0-rc0

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: QE 2022-05-02
Participants:
Linked BF Score: 184

 Description   

When HashLookupStage::readIndicesFromRecordStore() reads from the buffer the number of stored records, instead of 1 it gets back value 2^56 which leads to OOM on attempting to allocated a vector of this huge size.

Found by: https://jira.mongodb.org/browse/BF-24912



 Comments   
Comment by Githook User [ 21/Apr/22 ]

Author:

{'name': 'Irina Yatsenko', 'email': 'irina.yatsenko@mongodb.com', 'username': 'IrinaYatsenko'}

Message: SERVER-65772: Use consistent endinaness when (de)serializing during spilling in hash lookup

(cherry picked from commit f549d223638fb7ac304514cd73ca94250c93f5fa)
Branch: v6.0
https://github.com/mongodb/mongo/commit/8b954eecbd5560075d21ff2243e5c1514f9a69e2

Comment by Githook User [ 21/Apr/22 ]

Author:

{'name': 'Irina Yatsenko', 'email': 'irina.yatsenko@mongodb.com', 'username': 'IrinaYatsenko'}

Message: SERVER-65772: Use consistent endinaness when (de)serializing during spilling in hash lookup
Branch: master
https://github.com/mongodb/mongo/commit/f549d223638fb7ac304514cd73ca94250c93f5fa

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