Skip to content

Conversation

NBSquare
Copy link
Contributor

As above. Implemented a new unified test runner entity which wraps on a ClientSession and on its LSID, so that when the session is dropped, the LSID persists in the entity map to cross-reference with expected events.

Currently skipping one test in poc-transactions because it relies on index management, which isn't implemented AFAIK.

@NBSquare NBSquare requested a review from isabelatkinson June 23, 2021 15:56
@NBSquare NBSquare force-pushed the RUST-697 branch 2 times, most recently from 6706b47 to 91d2528 Compare June 24, 2021 15:34
Copy link
Contributor

@isabelatkinson isabelatkinson left a comment

Choose a reason for hiding this comment

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

This looks great! I just have a few small suggestions.

Copy link
Contributor

@isabelatkinson isabelatkinson left a comment

Choose a reason for hiding this comment

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

looks good! tagging in the rest of the team for review

#[derive(Clone, Debug)]
pub struct SessionEntity {
pub lsid: Document,
pub client_session: Option<Box<ClientSession>>,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure why the ClientSession is boxed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Clippy errors without the box, since the struct is too large otherwise.
Should I suppress the linter error instead?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh in that case its probably just fine to keep the Box then imo.

Copy link
Contributor

@patrickfreed patrickfreed left a comment

Choose a reason for hiding this comment

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

Changes look great to me, just echoing @abr-egn's question about the boxed session.

@NBSquare NBSquare merged commit 9da94ab into mongodb:master Jun 25, 2021
@NBSquare NBSquare deleted the RUST-697 branch June 25, 2021 20:38
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.

4 participants