[ 
https://issues.apache.org/jira/browse/FLINK-24193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chesnay Schepler closed FLINK-24193.
------------------------------------
    Resolution: Fixed

master:
Extension added: a5e83afb510aafa05aac31413e2b59704c374aa3
REST tests migrated: 8081dfbcc2c63dfda385a68f4615ddf5d51ccc26

> 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)

Reply via email to