mirror of https://github.com/apache/druid.git
Disable CacheDistributionTest by default (#4527)
This commit is contained in:
parent
298310ad78
commit
c5d5263c10
|
@ -74,6 +74,12 @@ public class MemcachedCache implements Cache
|
||||||
{
|
{
|
||||||
private static final Logger log = new Logger(MemcachedCache.class);
|
private static final Logger log = new Logger(MemcachedCache.class);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Default hash algorithm for cache distribution.
|
||||||
|
*
|
||||||
|
* If some other algorithms are considered as the default algorithm instead of this one, the cache distribution for
|
||||||
|
* those hash algorithms should be checked and compared using {@code CacheDistributionTest}.
|
||||||
|
*/
|
||||||
final static HashAlgorithm MURMUR3_128 = new HashAlgorithm()
|
final static HashAlgorithm MURMUR3_128 = new HashAlgorithm()
|
||||||
{
|
{
|
||||||
final HashFunction fn = Hashing.murmur3_128();
|
final HashFunction fn = Hashing.murmur3_128();
|
||||||
|
|
|
@ -32,6 +32,7 @@ import net.spy.memcached.util.DefaultKetamaNodeLocatorConfiguration;
|
||||||
import org.apache.commons.codec.digest.DigestUtils;
|
import org.apache.commons.codec.digest.DigestUtils;
|
||||||
import org.easymock.EasyMock;
|
import org.easymock.EasyMock;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.junit.runners.Parameterized;
|
import org.junit.runners.Parameterized;
|
||||||
|
@ -93,7 +94,10 @@ public class CacheDistributionTest
|
||||||
this.reps = reps;
|
this.reps = reps;
|
||||||
}
|
}
|
||||||
|
|
||||||
// run to get a sense of cache key distribution for different ketama reps / hash functions
|
// Run to get a sense of cache key distribution for different ketama reps / hash functions
|
||||||
|
// This test is disabled by default because it's a qualitative test not an unit test and thus it have a meaning only
|
||||||
|
// when being run and checked by humans.
|
||||||
|
@Ignore
|
||||||
@Test
|
@Test
|
||||||
public void testDistribution() throws Exception
|
public void testDistribution() throws Exception
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue