Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

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

Mark Robert Miller148b45394905
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 414d6b56c6e..63dd27b99a0 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -138,6 +138,8 @@ Other Changes
* SOLR-8259: Remove deprecated JettySolrRunner.getDispatchFilter()
+* SOLR-8258: Change default hdfs tlog replication factor from 1 to 3. (Mark Miller)
+
================== 5.4.0 ==================
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release
diff --git a/solr/core/src/java/org/apache/solr/update/HdfsUpdateLog.java b/solr/core/src/java/org/apache/solr/update/HdfsUpdateLog.java
index 6a0b6bdea5a..3f6ae337905 100644
--- a/solr/core/src/java/org/apache/solr/update/HdfsUpdateLog.java
+++ b/solr/core/src/java/org/apache/solr/update/HdfsUpdateLog.java
@@ -101,7 +101,7 @@ public class HdfsUpdateLog extends UpdateLog {
maxNumLogsToKeep = objToInt(info.initArgs.get("maxNumLogsToKeep"), 10);
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={}",
dataDir, defaultSyncLevel, numRecordsToKeep, maxNumLogsToKeep, tlogDfsReplication);