BlockCacheTest uses BlockCache which uses the common ForkJoinPool so we need to ensure the SolrIgnoredThreadsFilter is used

This commit is contained in:
Chris Hostetter 2019-04-08 10:57:02 -07:00
parent c1222b57e9
commit 6bc360ee67
1 changed files with 14 additions and 2 deletions

View File

@ -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;