Skip to content

test(NODE-4262): simplify leak checker for startSession fixes #3281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 3, 2022

Conversation

nbbeeken
Copy link
Contributor

@nbbeeken nbbeeken commented Jun 1, 2022

Description

What is changing?

Make the leak checker operate on MongoClient and ServerSessionPool.

What is the motivation for this change?

Simplifies the tracking of resources for the forthcoming change where sessions are managed on the client instead of the topology.

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: <type>(NODE-xxxx)<!>: <description>
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@nbbeeken nbbeeken marked this pull request as draft June 1, 2022 16:52
@nbbeeken nbbeeken force-pushed the test/leak-checker-fixes branch from 0aba7e2 to f7c9172 Compare June 1, 2022 20:11
@nbbeeken nbbeeken force-pushed the test/leak-checker-fixes branch from 7d0afae to ab5683d Compare June 1, 2022 21:23
@nbbeeken nbbeeken requested a review from baileympearson June 2, 2022 14:42
@nbbeeken nbbeeken added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Jun 2, 2022
@nbbeeken nbbeeken marked this pull request as ready for review June 2, 2022 18:28
@nbbeeken nbbeeken requested a review from baileympearson June 2, 2022 18:50
...(isAuthEnabled
? skippedAuthTests.concat(skippedMaxWireVersionTest)
: [skippedMaxWireVersionTest]),
// TODO(NODE-4288): Fix FLE 2 tests
Copy link
Contributor

Choose a reason for hiding this comment

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

should we leave a comment on Durran's current fle2 spec sync PR (NODE-4251) to rebase so that we can make sure to keep things consistent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Linked the jira, commented on GH, will comment on JIRA in a sec. I needed to skip these to check that there wasn't something hanging the run related to these changes.

Copy link
Contributor

@dariakp dariakp left a comment

Choose a reason for hiding this comment

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

I didn't look at the code in too much detail, I just have this question, the coordination question above, and also - don't we have a NODE ticket that this work can be attached to?

@baileympearson baileympearson added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Jun 3, 2022
@nbbeeken nbbeeken requested a review from dariakp June 3, 2022 16:25
@dariakp dariakp changed the title test: simplify leak checker for startSession fixes test(NODE-4262): simplify leak checker for startSession fixes Jun 3, 2022
@baileympearson baileympearson merged commit ed50ef5 into main Jun 3, 2022
@baileympearson baileympearson deleted the test/leak-checker-fixes branch June 3, 2022 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team Review Needs review from team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants