Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 6610 invoked from network); 4 Apr 2011 18:37:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Apr 2011 18:37:44 -0000 Received: (qmail 48459 invoked by uid 500); 4 Apr 2011 18:37:43 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 48227 invoked by uid 500); 4 Apr 2011 18:37:43 -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 48220 invoked by uid 99); 4 Apr 2011 18:37:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 18:37:43 +0000 X-ASF-Spam-Status: No, hits=-1996.4 required=5.0 tests=ALL_TRUSTED,FS_REPLICA,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 18:37:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D4F4E92329 for ; Mon, 4 Apr 2011 18:37:05 +0000 (UTC) Date: Mon, 4 Apr 2011 18:37:05 +0000 (UTC) From: "Otis Gospodnetic (JIRA)" To: dev@lucene.apache.org Message-ID: <773328253.33025.1301942225869.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-1853) ReplicationHandler reports incorrect replication failures MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-1853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015537#comment-13015537 ] Otis Gospodnetic commented on SOLR-1853: ---------------------------------------- This issue is still open, but it looks like Paul fixed it 1 year ago? Shawn, is this still a problem for you? > ReplicationHandler reports incorrect replication failures > --------------------------------------------------------- > > Key: SOLR-1853 > URL: https://issues.apache.org/jira/browse/SOLR-1853 > Project: Solr > Issue Type: Bug > Components: replication (java) > Affects Versions: 1.4 > Environment: Linux > Reporter: Shawn Smith > > The ReplicationHandler "details" command reports that replication failed when it didn't. This occurs after a slave is restarted when it is already in sync with the master. This makes it difficult to write production monitors that check the health of master-slave replication (no network issues, unexpected slowdowns, etc). > From the code, it looks like "SnapPuller.successfulInstall" starts out false on restart. If the slave starts out in sync with the master, then each no-op replication poll leaves "successfulInstall" set to false which makes SnapPuller.logReplicationTimeAndConfFiles log the poll as a failure. SnapPuller.successfulInstall stays false until the first time replication actually has to do something, at which point it gets set to true, and then everything is OK. > h4. Steps to reproduce > # Setup Solr master and slave servers using Solr 1.4 Java replication. > # Index some content on the master. Wait for it to replicate through to the slave so the master and slave are in sync. > # Stop the slave server. > # Restart the slave server. > # Wait for the first slave replication poll. > # Query the replication status using "http://localhost:8983/solr/replication?command=details" > # Until the master index changes and there's something to replicate, all slave replication polls after the restart will be shown as failed in the XML response. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org