mirror of https://github.com/apache/lucene.git
BlockCacheTest uses BlockCache which uses the common ForkJoinPool so we need to ensure the SolrIgnoredThreadsFilter is used
(cherry picked from commit 6bc360ee67
)
This commit is contained in:
parent
e460356abe
commit
ea2a91ef1f
|
@ -21,13 +21,25 @@ import java.util.Random;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
import java.util.concurrent.atomic.AtomicLong;
|
import java.util.concurrent.atomic.AtomicLong;
|
||||||
|
|
||||||
|
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakFilters;
|
||||||
|
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakLingering;
|
||||||
|
|
||||||
import com.github.benmanes.caffeine.cache.*;
|
import com.github.benmanes.caffeine.cache.*;
|
||||||
import org.apache.lucene.util.LuceneTestCase;
|
|
||||||
|
import org.apache.lucene.util.QuickPatchThreadsFilter;
|
||||||
|
|
||||||
|
import org.apache.solr.SolrIgnoredThreadsFilter;
|
||||||
import org.apache.solr.SolrTestCase;
|
import org.apache.solr.SolrTestCase;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
@LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 12-Jun-2018
|
@ThreadLeakFilters(defaultFilters = true, filters = {
|
||||||
|
SolrIgnoredThreadsFilter.class,
|
||||||
|
QuickPatchThreadsFilter.class
|
||||||
|
})
|
||||||
|
@ThreadLeakLingering(linger = 10000)
|
||||||
public class BlockCacheTest extends SolrTestCase {
|
public class BlockCacheTest extends SolrTestCase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testBlockCache() {
|
public void testBlockCache() {
|
||||||
int blocksInTest = 2000000;
|
int blocksInTest = 2000000;
|
||||||
|
|
Loading…
Reference in New Issue