Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8EFEC18206 for ; Tue, 22 Dec 2015 14:08:48 +0000 (UTC) Received: (qmail 3731 invoked by uid 500); 22 Dec 2015 14:08:46 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 3671 invoked by uid 500); 22 Dec 2015 14:08:46 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 3650 invoked by uid 99); 22 Dec 2015 14:08:46 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2015 14:08:46 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 965142C0451 for ; Tue, 22 Dec 2015 14:08:46 +0000 (UTC) Date: Tue, 22 Dec 2015 14:08:46 +0000 (UTC) From: "Shai Erera (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (SOLR-8455) Minor improvements to RecoveryStrategy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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