Skip to content

Commit 194dc1d

Browse files
authored
Use jna cleaner thread filter in spawner tests (#115598) (#115610)
This commit filters out jna cleaner threads specifically in the spawner tests (which have a different set of filters from ESTestCase because they extend LuceneTestCase). closes #114555
1 parent b8b97a6 commit 194dc1d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

muted-tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,6 @@ tests:
349349
- class: org.elasticsearch.xpack.security.operator.OperatorPrivilegesIT
350350
method: testEveryActionIsEitherOperatorOnlyOrNonOperator
351351
issue: https://github.com/elastic/elasticsearch/issues/102992
352-
- class: org.elasticsearch.bootstrap.SpawnerNoBootstrapTests
353-
issue: https://github.com/elastic/elasticsearch/issues/114555
354352
- class: org.elasticsearch.ingest.geoip.DatabaseNodeServiceIT
355353
method: testNonGzippedDatabase
356354
issue: https://github.com/elastic/elasticsearch/issues/113821

qa/no-bootstrap-tests/src/test/java/org/elasticsearch/bootstrap/SpawnerNoBootstrapTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import org.elasticsearch.plugins.Platforms;
2525
import org.elasticsearch.plugins.PluginTestUtil;
2626
import org.elasticsearch.test.GraalVMThreadsFilter;
27+
import org.elasticsearch.test.JnaCleanerThreadsFilter;
2728
import org.elasticsearch.test.MockLog;
2829

2930
import java.io.IOException;
@@ -50,7 +51,7 @@
5051
* that prevents the Spawner class from doing its job. Also needs to run in a separate JVM to other
5152
* tests that extend ESTestCase for the same reason.
5253
*/
53-
@ThreadLeakFilters(filters = { GraalVMThreadsFilter.class })
54+
@ThreadLeakFilters(filters = { GraalVMThreadsFilter.class, JnaCleanerThreadsFilter.class })
5455
public class SpawnerNoBootstrapTests extends LuceneTestCase {
5556

5657
private static final String CONTROLLER_SOURCE = """

0 commit comments

Comments
 (0)