You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "litiliu (via GitHub)" <gi...@apache.org> on 2026/06/08 02:20:37 UTC
[PR] [test] Fix ComponentClassLoaderTest tmpdir path handling [fluss]
litiliu opened a new pull request, #3450:
URL: https://github.com/apache/fluss/pull/3450
## Summary
- Use a stable package/resource prefix in `ComponentClassLoaderTest` instead of the machine-specific temporary directory path.
- Create the test resource explicitly under the JUnit temp directory.
- Avoid failures when `java.io.tmpdir` contains dotted path segments such as `1.0-SNAPSHOT`.
## Root Cause
`ComponentClassLoader` converts package prefixes to resource path prefixes by replacing `.` with `/`. The test previously used the absolute `@TempDir` path as the prefix, so dotted path segments were rewritten and no longer matched the resource name.
Fixes #3437.
## Test Plan
- `mvn -pl fluss-common -Dtest=ComponentClassLoaderTest test`
- `mvn -pl fluss-common test`
AI-assisted changes - reviewed by human developer
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [test] Fix ComponentClassLoaderTest tmpdir path handling [fluss]
Posted by "luoyuxia (via GitHub)" <gi...@apache.org>.
luoyuxia merged PR #3450:
URL: https://github.com/apache/fluss/pull/3450
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org