lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject [23/33] lucene-solr:feature/autoscaling: SOLR-11052: Remove unnecessary Long-to-Integer and back casts in ReplicationHandler. (Ramsey Haddad via Christine Poerschke)
Date Tue, 18 Jul 2017 05:14:15 GMT
SOLR-11052: Remove unnecessary Long-to-Integer and back casts in ReplicationHandler.
(Ramsey Haddad via Christine Poerschke)


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/abdb7292
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/abdb7292
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/abdb7292

Branch: refs/heads/feature/autoscaling
Commit: abdb7292dbb5d74a63b546dc239423b04ab7e25b
Parents: b17ec14
Author: Christine Poerschke <cpoerschke@apache.org>
Authored: Mon Jul 17 13:18:59 2017 +0100
Committer: Christine Poerschke <cpoerschke@apache.org>
Committed: Mon Jul 17 13:18:59 2017 +0100

----------------------------------------------------------------------
 solr/CHANGES.txt                                               | 4 ++++
 .../src/java/org/apache/solr/handler/ReplicationHandler.java   | 6 +++---
 2 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/abdb7292/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index e6996dc..16bebf7 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -88,6 +88,10 @@ Other Changes
 * SOLR-10964: Reduce SolrIndexSearcher casting in LTRRescorer. (Christine Poerschke)
 
 * SOLR-11075: Refactor handling of params in CloudSolrStream and FacetStream (Erick Erickson)
+
+* SOLR-11052: Remove unnecessary Long-to-Integer and back casts in ReplicationHandler.
+  (Ramsey Haddad via Christine Poerschke)
+
 ==================  7.0.0 ==================
 
 Versions of Major Components

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/abdb7292/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java b/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java
index 2d545ba..1da8f85 100644
--- a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java
+++ b/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java
@@ -205,7 +205,7 @@ public class ReplicationHandler extends RequestHandlerBase implements
SolrCoreAw
 
   private final Map<String, FileInfo> confFileInfoCache = new HashMap<>();
 
-  private Integer reserveCommitDuration = readIntervalMs("00:00:10");
+  private Long reserveCommitDuration = readIntervalMs("00:00:10");
 
   volatile IndexCommit indexCommitPoint;
 
@@ -1695,8 +1695,8 @@ public class ReplicationHandler extends RequestHandlerBase implements
SolrCoreAw
 
   }
 
-  private static Integer readIntervalMs(String interval) {
-    return (int) TimeUnit.MILLISECONDS.convert(readIntervalNs(interval), TimeUnit.NANOSECONDS);
+  private static Long readIntervalMs(String interval) {
+    return TimeUnit.MILLISECONDS.convert(readIntervalNs(interval), TimeUnit.NANOSECONDS);
   }
 
   private static Long readIntervalNs(String interval) {


Mime
View raw message