mirror of https://github.com/apache/lucene.git
SOLR-10098: Keep netty from using secure random on startup in tests.
This commit is contained in:
parent
ae68e6cebc
commit
5738c293f0
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue