[
https://issues.apache.org/jira/browse/FLINK-24193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated FLINK-24193:
-----------------------------------
Labels: pull-request-available (was: )
> Test service entries cause noise in other tests
> -----------------------------------------------
>
> Key: FLINK-24193
> URL: https://issues.apache.org/jira/browse/FLINK-24193
> Project: Flink
> Issue Type: Technical Debt
> Components: Tests
> Reporter: Chesnay Schepler
> Assignee: Chesnay Schepler
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.15.0
>
>
> At various points in Flink we use the ServiceLoader mechanism to load
> implementations, for example filesystems or reporters.
> It is thus only natural that we also have some test service implementations
> which are used in specific tests.
> However, these test implementations are intended to only be used in very
> specific tests, but are currently but on the classpath for all tests in that
> module (+all that depend on the test-jar of such a module). This causes
> confusion (e.g., suddenly there are 5 reporter factories available) or
> logging noise (e.g., custom netty handlers being loaded by each MiniCluster).
> We should implement a junit extension that runs the test with a customized
> classloader, which also as access to a temporary directory containing
> generated service entries.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)