Skip to content
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

WIP Test unclosed comms #8058

Closed
wants to merge 2 commits into from
Closed

Conversation

fjetter
Copy link
Member

@fjetter fjetter commented Jul 31, 2023

I think this is (kind of) minimally reproducing #8054

Comment on lines +1388 to +1392
pool = await ConnectionPool()
try:
await pool(server.address).ping()
finally:
await pool.close()
Copy link
Member Author

Choose a reason for hiding this comment

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

FWIW this also triggers with a plain rpc so it's likely not the pool

@github-actions
Copy link
Contributor

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

       20 files  ±  0         20 suites  ±0   11h 58m 31s ⏱️ + 39m 49s
  3 746 tests +  1    3 633 ✔️ +  2     106 💤 ±0    7  - 1 
36 234 runs  +10  34 471 ✔️ +12  1 749 💤  - 1  14  - 1 

For more details on these failures, see this check.

Results for commit c51912d. ± Comparison against base commit 9a9d2c3.

@fjetter
Copy link
Member Author

fjetter commented Aug 1, 2023

This test is a false positive. I am getting unclosed comms at the end of the test because I still have tasks with a connectionpool running. Those tasks have a running pool with an already established connection but haven't processed the closing server, yet. they will close properly and cleanup everything.

This suggests that the leak happens somewhere further up the stack. possibly a Server.close is not properly awaiting the pool close or we're leaking a comm somewhere else

@fjetter fjetter closed this Aug 1, 2023
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.

1 participant