lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-8455) Minor improvements to RecoveryStrategy
Date Tue, 22 Dec 2015 14:08:46 GMT
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


Mime
View raw message