lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1231202 - /lucene/dev/branches/solrcloud/solr/core/src/java/org/apache/solr/cloud/RecoveryStrat.java
Date Fri, 13 Jan 2012 17:35:59 GMT
Author: markrmiller
Date: Fri Jan 13 17:35:59 2012
New Revision: 1231202

URL: http://svn.apache.org/viewvc?rev=1231202&view=rev
Log:
move publish under the try

Modified:
    lucene/dev/branches/solrcloud/solr/core/src/java/org/apache/solr/cloud/RecoveryStrat.java

Modified: lucene/dev/branches/solrcloud/solr/core/src/java/org/apache/solr/cloud/RecoveryStrat.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/solrcloud/solr/core/src/java/org/apache/solr/cloud/RecoveryStrat.java?rev=1231202&r1=1231201&r2=1231202&view=diff
==============================================================================
--- lucene/dev/branches/solrcloud/solr/core/src/java/org/apache/solr/cloud/RecoveryStrat.java
(original)
+++ lucene/dev/branches/solrcloud/solr/core/src/java/org/apache/solr/cloud/RecoveryStrat.java
Fri Jan 13 17:35:59 2012
@@ -109,10 +109,11 @@ public class RecoveryStrat {
           int retries = 0;
           while (!succesfulRecovery && !close) {
             ulog.bufferUpdates();  
-            zkController.publishAsRecoverying(baseUrl, cloudDesc, shardZkNodeName,
-                core.getName());
             replayed = false;
             try {
+              zkController.publishAsRecoverying(baseUrl, cloudDesc, shardZkNodeName,
+                  core.getName());
+              
               ZkNodeProps leaderprops = zkStateReader.getLeaderProps(
                   cloudDesc.getCollectionName(), cloudDesc.getShardId());
               // nocommit



Mime
View raw message