SOLR-8258: Change default hdfs tlog replication factor from 1 to 3.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1713673 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2015-11-10 15:51:15 +00:00
parent 50c89d58e6
commit 148b453949
2 changed files with 3 additions and 1 deletions

View File

@ -138,6 +138,8 @@ Other Changes
* SOLR-8259: Remove deprecated JettySolrRunner.getDispatchFilter() * SOLR-8259: Remove deprecated JettySolrRunner.getDispatchFilter()
* SOLR-8258: Change default hdfs tlog replication factor from 1 to 3. (Mark Miller)
================== 5.4.0 ================== ================== 5.4.0 ==================
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release

View File

@ -101,7 +101,7 @@ public class HdfsUpdateLog extends UpdateLog {
maxNumLogsToKeep = objToInt(info.initArgs.get("maxNumLogsToKeep"), 10); maxNumLogsToKeep = objToInt(info.initArgs.get("maxNumLogsToKeep"), 10);
tlogDfsReplication = (Integer) info.initArgs.get( "tlogDfsReplication"); tlogDfsReplication = (Integer) info.initArgs.get( "tlogDfsReplication");
if (tlogDfsReplication == null) tlogDfsReplication = 1; if (tlogDfsReplication == null) tlogDfsReplication = 3;
log.info("Initializing HdfsUpdateLog: dataDir={} defaultSyncLevel={} numRecordsToKeep={} maxNumLogsToKeep={} tlogDfsReplication={}", log.info("Initializing HdfsUpdateLog: dataDir={} defaultSyncLevel={} numRecordsToKeep={} maxNumLogsToKeep={} tlogDfsReplication={}",
dataDir, defaultSyncLevel, numRecordsToKeep, maxNumLogsToKeep, tlogDfsReplication); dataDir, defaultSyncLevel, numRecordsToKeep, maxNumLogsToKeep, tlogDfsReplication);