SOLR-10233: Cleanup warnings from ReplicateFromLeader

This commit is contained in:
Tomas Fernandez Lobbe 2017-06-06 17:22:01 -07:00
parent 46a5ae23a7
commit 97655b880c
1 changed files with 3 additions and 3 deletions

View File

@ -72,10 +72,10 @@ public class ReplicateFromLeader {
}
LOG.info("Will start replication from leader with poll interval: {}", pollIntervalStr );
NamedList slaveConfig = new NamedList();
slaveConfig.add("fetchFromLeader", true);
NamedList<Object> slaveConfig = new NamedList<>();
slaveConfig.add("fetchFromLeader", Boolean.TRUE);
slaveConfig.add("pollInterval", pollIntervalStr);
NamedList replicationConfig = new NamedList();
NamedList<Object> replicationConfig = new NamedList<>();
replicationConfig.add("slave", slaveConfig);
String lastCommitVersion = getCommitVersion(core);