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

Make sure the TestResourceManager is closed before the CL is closed #41434

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

gsmet
Copy link
Member

@gsmet gsmet commented Jun 25, 2024

  • The TestResourceManager is instantiated using the runtime class loader so we need to make sure we close it before we close the runtime class loader. Otherwise we can get into trouble if we need to load some additional classes.
  • Also make sure that it is only closed once. It used to be closed once when the application is stopped and then again when the QuarkusTestExtensionState was closed.

Related to #41233

- The TestResourceManager is instantiated using the runtime class loader
  so we need to make sure we close it before we close the runtime class
  loader. Otherwise we can get into trouble if we need to load some
  additional classes.
- Also make sure that it is only closed once. It used to be closed once
  when the application is stopped and then again when the
  QuarkusTestExtensionState was closed.

Related to quarkusio#41233
@quarkus-bot quarkus-bot bot added area/core area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/testing labels Jun 25, 2024
@gsmet
Copy link
Member Author

gsmet commented Jun 25, 2024

@geoand sorry this is part of my current work. The idea is to make sure we close things at the right time.

@gsmet gsmet merged commit bf10fff into quarkusio:main Jun 26, 2024
52 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.13 - main milestone Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants