You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2016/06/15 22:18:57 UTC
[1/3] lucene-solr:branch_5_5: SOLR-8857: HdfsUpdateLog does not use
configured or new default number of version buckets and is hard coded to 256.
Repository: lucene-solr
Updated Branches:
refs/heads/branch_5_5 90e823ed3 -> 96deb63fb
refs/heads/branch_5x c92703d38 -> 37f4d7310
SOLR-8857: HdfsUpdateLog does not use configured or new default number of version buckets and is hard coded to 256.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/96deb63f
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/96deb63f
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/96deb63f
Branch: refs/heads/branch_5_5
Commit: 96deb63fbe868f250a3d477fc439bc665cb0af28
Parents: 90e823e
Author: markrmiller <ma...@apache.org>
Authored: Mon Mar 21 14:10:03 2016 -0400
Committer: Steve Rowe <sa...@apache.org>
Committed: Wed Jun 15 18:14:11 2016 -0400
----------------------------------------------------------------------
solr/CHANGES.txt | 3 +++
.../src/java/org/apache/solr/update/HdfsUpdateLog.java | 13 +++----------
2 files changed, 6 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/96deb63f/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 75aba5a..b5cc922 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -37,6 +37,9 @@ Bug Fixes
* SOLR-8940: Fix group.sort option (hossman)
+* SOLR-8857: HdfsUpdateLog does not use configured or new default number of version buckets and is
+ hard coded to 256. (Mark Miller, yonik, Gregory Chanan)
+
======================= 5.5.1 =======================
Bug Fixes
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/96deb63f/solr/core/src/java/org/apache/solr/update/HdfsUpdateLog.java
----------------------------------------------------------------------
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 b8daff8..4eac407 100644
--- a/solr/core/src/java/org/apache/solr/update/HdfsUpdateLog.java
+++ b/solr/core/src/java/org/apache/solr/update/HdfsUpdateLog.java
@@ -97,19 +97,12 @@ public class HdfsUpdateLog extends UpdateLog {
@Override
public void init(PluginInfo info) {
- dataDir = (String) info.initArgs.get("dir");
-
- defaultSyncLevel = SyncLevel.getSyncLevel((String) info.initArgs
- .get("syncLevel"));
-
- numRecordsToKeep = objToInt(info.initArgs.get("numRecordsToKeep"), 100);
- maxNumLogsToKeep = objToInt(info.initArgs.get("maxNumLogsToKeep"), 10);
+ super.init(info);
tlogDfsReplication = (Integer) info.initArgs.get( "tlogDfsReplication");
if (tlogDfsReplication == null) tlogDfsReplication = 1;
- log.info("Initializing HdfsUpdateLog: dataDir={} defaultSyncLevel={} numRecordsToKeep={} maxNumLogsToKeep={} tlogDfsReplication={}",
- dataDir, defaultSyncLevel, numRecordsToKeep, maxNumLogsToKeep, tlogDfsReplication);
+ log.info("Initializing HdfsUpdateLog: tlogDfsReplication={}", tlogDfsReplication);
}
private Configuration getConf() {
@@ -231,7 +224,7 @@ public class HdfsUpdateLog extends UpdateLog {
}
try {
- versionInfo = new VersionInfo(this, 256);
+ versionInfo = new VersionInfo(this, numVersionBuckets);
} catch (SolrException e) {
log.error("Unable to use updateLog: " + e.getMessage(), e);
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,
[3/3] lucene-solr:branch_5x: SOLR-8857: Remove misplaced CHANGES entry
Posted by sa...@apache.org.
SOLR-8857: Remove misplaced CHANGES entry
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/37f4d731
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/37f4d731
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/37f4d731
Branch: refs/heads/branch_5x
Commit: 37f4d73105a26bac51b3b56fd9e4a62d1d82cdbe
Parents: b5b55df
Author: Steve Rowe <sa...@apache.org>
Authored: Wed Jun 15 18:17:22 2016 -0400
Committer: Steve Rowe <sa...@apache.org>
Committed: Wed Jun 15 18:17:22 2016 -0400
----------------------------------------------------------------------
solr/CHANGES.txt | 3 ---
1 file changed, 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/37f4d731/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index a85c4fa..faec8ce 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -34,9 +34,6 @@ Other Changes
* SOLR-8677: Prevent shards containing invalid characters from being created. Checks added server-side
and in SolrJ. (Shai Erera, Jason Gerlowski, Anshum Gupta)
-* SOLR-8857: HdfsUpdateLog does not use configured or new default number of version buckets and is
- hard coded to 256. (Mark Miller, yonik, Gregory Chanan)
-
======================= 5.5.1 =======================
Bug Fixes
[2/3] lucene-solr:branch_5x: SOLR-8857: HdfsUpdateLog does not use
configured or new default number of version buckets and is hard coded to 256.
Posted by sa...@apache.org.
SOLR-8857: HdfsUpdateLog does not use configured or new default number of version buckets and is hard coded to 256.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/b5b55dfb
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/b5b55dfb
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/b5b55dfb
Branch: refs/heads/branch_5x
Commit: b5b55dfb35fdf544da8af48c3e5935b776194a4e
Parents: c92703d
Author: markrmiller <ma...@apache.org>
Authored: Mon Mar 21 14:10:03 2016 -0400
Committer: Steve Rowe <sa...@apache.org>
Committed: Wed Jun 15 18:15:15 2016 -0400
----------------------------------------------------------------------
solr/CHANGES.txt | 3 +++
.../src/java/org/apache/solr/update/HdfsUpdateLog.java | 13 +++----------
2 files changed, 6 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b5b55dfb/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index faec8ce..a85c4fa 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -34,6 +34,9 @@ Other Changes
* SOLR-8677: Prevent shards containing invalid characters from being created. Checks added server-side
and in SolrJ. (Shai Erera, Jason Gerlowski, Anshum Gupta)
+* SOLR-8857: HdfsUpdateLog does not use configured or new default number of version buckets and is
+ hard coded to 256. (Mark Miller, yonik, Gregory Chanan)
+
======================= 5.5.1 =======================
Bug Fixes
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b5b55dfb/solr/core/src/java/org/apache/solr/update/HdfsUpdateLog.java
----------------------------------------------------------------------
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 b8daff8..4eac407 100644
--- a/solr/core/src/java/org/apache/solr/update/HdfsUpdateLog.java
+++ b/solr/core/src/java/org/apache/solr/update/HdfsUpdateLog.java
@@ -97,19 +97,12 @@ public class HdfsUpdateLog extends UpdateLog {
@Override
public void init(PluginInfo info) {
- dataDir = (String) info.initArgs.get("dir");
-
- defaultSyncLevel = SyncLevel.getSyncLevel((String) info.initArgs
- .get("syncLevel"));
-
- numRecordsToKeep = objToInt(info.initArgs.get("numRecordsToKeep"), 100);
- maxNumLogsToKeep = objToInt(info.initArgs.get("maxNumLogsToKeep"), 10);
+ super.init(info);
tlogDfsReplication = (Integer) info.initArgs.get( "tlogDfsReplication");
if (tlogDfsReplication == null) tlogDfsReplication = 1;
- log.info("Initializing HdfsUpdateLog: dataDir={} defaultSyncLevel={} numRecordsToKeep={} maxNumLogsToKeep={} tlogDfsReplication={}",
- dataDir, defaultSyncLevel, numRecordsToKeep, maxNumLogsToKeep, tlogDfsReplication);
+ log.info("Initializing HdfsUpdateLog: tlogDfsReplication={}", tlogDfsReplication);
}
private Configuration getConf() {
@@ -231,7 +224,7 @@ public class HdfsUpdateLog extends UpdateLog {
}
try {
- versionInfo = new VersionInfo(this, 256);
+ versionInfo = new VersionInfo(this, numVersionBuckets);
} catch (SolrException e) {
log.error("Unable to use updateLog: " + e.getMessage(), e);
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,