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 14445108D1 for ; Fri, 26 Apr 2013 19:18:18 +0000 (UTC) Received: (qmail 10426 invoked by uid 500); 26 Apr 2013 19:18:16 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 10353 invoked by uid 500); 26 Apr 2013 19:18:16 -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 10345 invoked by uid 99); 26 Apr 2013 19:18:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Apr 2013 19:18:16 +0000 Date: Fri, 26 Apr 2013 19:18:16 +0000 (UTC) From: "Commit Tag Bot (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SOLR-4754) solrcloud does not detect an implicit "host" and does not provide clear error using 4x example 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-4754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13643152#comment-13643152 ] Commit Tag Bot commented on SOLR-4754: -------------------------------------- [branch_4x commit] markrmiller http://svn.apache.org/viewvc?view=revision&revision=1476349 SOLR-4754: our config parser seems to have been changed to return "" when it used to return null on an empty value and broke default host detection > solrcloud does not detect an implicit "host" and does not provide clear error using 4x example > ---------------------------------------------------------------------------------------------- > > Key: SOLR-4754 > URL: https://issues.apache.org/jira/browse/SOLR-4754 > Project: Solr > Issue Type: Bug > Reporter: Hoss Man > Assignee: Mark Miller > Priority: Blocker > Fix For: 4.3, 5.0 > > > Testing out the 4.3.0 RC3, I tried to run through the SolrCloud examples. > Following the steps for "Example A: Simple two shard cluster" my two nodes started up w/o any obvious problem, however the I noticed the cluster graph was empty, and attempts to index documents failed with invalid url errors when trying to forward the distributed updates. Closer inspection of the cluster state lead me to discover that the URLs for the nodes as registered with ZK did not include any host information at all. (details to follow in comment) > Apparently, the logic for implicitly detecting a hostname to use with SolrCloud failed to work, and did not cause any sort of startup error. > Important things to note: > # java clearly _did_ know what the current configured hostname was for my machine, because it appeared correctly in the {{}} tag of the admin UI (pulled from "/admin/system") so i don't think this probablem is specific to any sort of glitch in my hostname configuration. > # explicitly setting the "host" sys prop (as used in the example solr.xml) worked around the problem > # I could _not_ reproduce this problem with Solr 4.2.1 (using the 4.2.1 example configs) > We should try to make the hostname/url detection logic smarter (i'm not sure why it isn't working as well as the SystemInfoHandler) and it should fail loudly on startup as last resort rather then registering the node with ZK using an invalid URL. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators 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