Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 51255 invoked from network); 15 Jul 2009 15:00:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jul 2009 15:00:30 -0000 Received: (qmail 55254 invoked by uid 500); 15 Jul 2009 15:00:39 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 55185 invoked by uid 500); 15 Jul 2009 15:00:39 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 55175 invoked by uid 99); 15 Jul 2009 15:00:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 15:00:39 +0000 X-ASF-Spam-Status: No, hits=-1998.8 required=10.0 tests=ALL_TRUSTED,FS_REPLICA X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 15:00:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2DB35234C045 for ; Wed, 15 Jul 2009 08:00:15 -0700 (PDT) Message-ID: <1256803840.1247670015186.JavaMail.jira@brutus> Date: Wed, 15 Jul 2009 08:00:15 -0700 (PDT) From: "Brian Loudon (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Commented: (SOLR-1282) Replication handler's fetchindex command randomly ignores masterUrl parameter In-Reply-To: <180750462.1247609114965.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731493#action_12731493 ] Brian Loudon commented on SOLR-1282: ------------------------------------ The dummy1/2 URLs are there only to more clearly show whether the slave attempted to use the configured or specified masterUrl for a particular request, as the slave generates an error message stating one or the other. The random failure to use the value of the masterUrl parameter still occurs when the slave does not have a masterUrl configured. In all cases the slave's response to the fetchindex command is 'OK', and any failure must be determined through examining logs. I added logging calls to the top of doSnapPull in org.apache.solr.handler.ReplicationHandler to display the contents of the SolrParams instance it is given. On requests where the masterUrl parameter appears to be ignored the logs show that the SolrParams instance contains no parameters. > Replication handler's fetchindex command randomly ignores masterUrl parameter > ----------------------------------------------------------------------------- > > Key: SOLR-1282 > URL: https://issues.apache.org/jira/browse/SOLR-1282 > Project: Solr > Issue Type: Bug > Components: replication (java) > Affects Versions: 1.4 > Reporter: Brian Loudon > Assignee: Noble Paul > > The fetchindex command of the replication handler is randomly ignoring the value of a specified masterUrl parameter, instead using the masterUrl configured in solrconfig.xml. > Injecting some debugging code shows that the contents of solrParams disappear sometime after the thread running doSnapPull() starts in ReplicationHandler's handleRequestBody() method. > This behavior is observed in the most recent nightly build (2009-07-14). > How to replicate: > Configure a core as a slave with a masterUrl: > > > http://dummy1 > > > Run the core's fetchindex replication command several times, passing a different masterUrl: > /replication?command=fetchindex&masterUrl=http://dummy2 > Logs show that the configured masterUrl (dummy1) is being used for at least half the requests. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.