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
This commit is contained in:
parent
c1222b57e9
commit
6bc360ee67
|
@ -21,13 +21,25 @@ import java.util.Random;
|
|||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
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 org.apache.lucene.util.LuceneTestCase;
|
||||
|
||||
import org.apache.lucene.util.QuickPatchThreadsFilter;
|
||||
|
||||
import org.apache.solr.SolrIgnoredThreadsFilter;
|
||||
import org.apache.solr.SolrTestCase;
|
||||
|
||||
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 {
|
||||
|
||||
@Test
|
||||
public void testBlockCache() {
|
||||
int blocksInTest = 2000000;
|
||||
|
|
Loading…
Reference in New Issue