Skip to content

Conversation

@eramongodb
Copy link
Contributor

@eramongodb eramongodb commented Nov 28, 2023

SERVER-79306 clarified this is expected behavior. This PR updates the relevant comment accordingly to avoid misleading implications + to be consistency with the existing comment in aggregation_examples.cpp.

The equivalent unified spec test likely does not encounter this issue due to reuse of the client0 object used to create collections in database0 during the createEntities stage, which adds entries to the logical session cache that are visible by the time the aggregate command is executed.

@eramongodb eramongodb requested a review from kevinAlbs November 28, 2023 18:12
@eramongodb eramongodb self-assigned this Nov 28, 2023
@kevinAlbs
Copy link
Collaborator

The equivalent unified spec test likely does not encounter this issue due to reuse of the client0 object used to create collections in database0 during the createEntities stage, which adds entries to the logical session cache that are visible by the time the aggregate command is executed.

That may also be due to the unified test using the admin database (which may always exist?).

Copy link
Collaborator

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a fix to lint.

@eramongodb eramongodb merged commit 5bdf573 into mongodb:master Nov 28, 2023
@eramongodb eramongodb deleted the cxx-server-79306 branch November 28, 2023 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants