SOLR-10098: Keep netty from using secure random on startup in tests.

This commit is contained in:
markrmiller 2017-02-08 13:43:07 -05:00
parent ae68e6cebc
commit 5738c293f0
1 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,8 @@ import org.apache.solr.util.HdfsUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import io.netty.util.internal.ThreadLocalRandom;
public class HdfsTestUtil {
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
@ -75,6 +77,10 @@ public class HdfsTestUtil {
if (!HA_TESTING_ENABLED) haTesting = false;
// keep netty from using secure random on startup: SOLR-10098
ThreadLocalRandom.setInitialSeedUniquifier(1L);
int dataNodes = Integer.getInteger("tests.hdfs.numdatanodes", 2);
Configuration conf = new Configuration();