You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shai Erera (JIRA)" <ji...@apache.org> on 2015/12/22 15:08:46 UTC

[jira] [Created] (SOLR-8455) Minor improvements to RecoveryStrategy

Shai Erera created SOLR-8455:
--------------------------------

             Summary: Minor improvements to RecoveryStrategy
                 Key: SOLR-8455
                 URL: https://issues.apache.org/jira/browse/SOLR-8455
             Project: Solr
          Issue Type: Improvement
          Components: SolrCloud
            Reporter: Shai Erera
            Assignee: Shai Erera
            Priority: Minor
             Fix For: 5.5, Trunk
         Attachments: SOLR-8455.patch

This issue addresses multiple minor improvements to {{RecoveryStrategy}}:

* Logging improvements: proper use of Logger interface, improve log messages.
* Consolidated a debug block into a method and reuse.
* Get rid of unused and deprecated code.

In addition, the code over-slept between recovery attempts. The inline comment suggested that the intention was to sleep between 1 second to 1 minute, while implement an exponential sleep interval strategy. However in practice the code sleeps in intervals of 5 seconds and up to 5 minutes. So I fixed the code to sleep at interval of 5 seconds (checking if it was closed in between sleep attempts) and up to 1 minute.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org