[SERVER-84538] UniqueStage::open(reOpen = true) should clear _seen buffer Created: 03/Jan/24  Updated: 29/Jan/24  Resolved: 29/Jan/24

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

Type: Bug Priority: Major - P3
Reporter: Mihai Andrei Assignee: Mihai Andrei
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QE 2024-02-05
Participants:

 Description   

When performing a reopen on UniqueStage, we should clear UniqueStage::_seen. This is because if reOpen represents a fused close/open, the result for UniqueStage should be an empty _seen buffer. 

It is not clear whether this affects any SBE query that runs today, however, this is a simple enough fix that we should just fix it.



 Comments   
Comment by Githook User [ 27/Jan/24 ]

Author:

{'name': 'Mihai Andrei', 'email': 'mihai.andrei@mongodb.com', 'username': 'mtandrei'}

Message: SERVER-84538 Clear UniqueStage::_seen in open() when reOpen is true (#18416)

GitOrigin-RevId: 2872cd6648f74e03d91c7e99ff147d844f8694bb
Branch: master
https://github.com/mongodb/mongo/commit/fc9e4c68fa94e05a874b6be17bd2f7a7b6063730

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