Skip to content

Close file-handling resources in UberModuleClassLoaderTests#97123

Merged
williamrandolph merged 4 commits intoelastic:mainfrom
williamrandolph:fix/91609/use-closeable-classloaders
Jun 27, 2023
Merged

Close file-handling resources in UberModuleClassLoaderTests#97123
williamrandolph merged 4 commits intoelastic:mainfrom
williamrandolph:fix/91609/use-closeable-classloaders

Conversation

@williamrandolph
Copy link
Copy Markdown
Contributor

There are a few places where we weren't cleaning up classloaders and file handlers, which becomes a problem on Windows. Here we're adjusting the tests to use explicitly closable classloaders and to close the file wrappers used in the in memory compiler.

Fixes #91609

@williamrandolph williamrandolph added >test Issues or PRs that are addressing/adding tests :Core/Infra/Plugins Plugin API and infrastructure test-windows Trigger CI checks on Windows labels Jun 26, 2023
@williamrandolph williamrandolph marked this pull request as ready for review June 27, 2023 14:30
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Jun 27, 2023
Copy link
Copy Markdown
Contributor

@ChrisHegarty ChrisHegarty left a comment

Choose a reason for hiding this comment

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

LGTM

@williamrandolph williamrandolph merged commit 178769b into elastic:main Jun 27, 2023
@williamrandolph williamrandolph deleted the fix/91609/use-closeable-classloaders branch September 7, 2023 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Plugins Plugin API and infrastructure Team:Core/Infra Meta label for core/infra team >test Issues or PRs that are addressing/adding tests test-windows Trigger CI checks on Windows v8.10.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] UberModuleClassLoaderTests failing

3 participants