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 BC98266CC for ; Tue, 28 Jun 2011 04:50:53 +0000 (UTC) Received: (qmail 97119 invoked by uid 500); 28 Jun 2011 04:50:52 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 95998 invoked by uid 500); 28 Jun 2011 04:50: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 95966 invoked by uid 99); 28 Jun 2011 04:50:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2011 04:50:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,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; Tue, 28 Jun 2011 04:50:38 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 32D344352E7 for ; Tue, 28 Jun 2011 04:50:17 +0000 (UTC) Date: Tue, 28 Jun 2011 04:50:17 +0000 (UTC) From: "Alexey Serba (JIRA)" To: dev@lucene.apache.org Message-ID: <1135020632.669.1309236617204.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <502744468.571.1309233617194.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (SOLR-2623) Solr JMX MBeans do not survive core reloads 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-2623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Serba updated SOLR-2623: ------------------------------- Attachment: SOLR-2623.patch Added test > Solr JMX MBeans do not survive core reloads > ------------------------------------------- > > Key: SOLR-2623 > URL: https://issues.apache.org/jira/browse/SOLR-2623 > Project: Solr > Issue Type: Bug > Components: multicore > Affects Versions: 1.4, 1.4.1, 3.1, 3.2 > Reporter: Alexey Serba > Priority: Minor > Attachments: SOLR-2623.patch > > > Solr JMX MBeans do not survive core reloads > {noformat:title="Steps to reproduce"} > sh> cd example > sh> vi multicore/core0/conf/solrconfig.xml # enable jmx > sh> java -Dcom.sun.management.jmxremote -Dsolr.solr.home=multicore -jar start.jar > sh> echo 'open 8842 # 8842 is java pid > > domain solr/core0 > > beans > > ' | java -jar jmxterm-1.0-alpha-4-uber.jar > .... > solr/core0:id=core0,type=core > solr/core0:id=org.apache.solr.handler.StandardRequestHandler,type=org.apache.solr.handler.StandardRequestHandler > solr/core0:id=org.apache.solr.handler.StandardRequestHandler,type=standard > solr/core0:id=org.apache.solr.handler.XmlUpdateRequestHandler,type=/update > solr/core0:id=org.apache.solr.handler.XmlUpdateRequestHandler,type=org.apache.solr.handler.XmlUpdateRequestHandler > ... > solr/core0:id=org.apache.solr.search.SolrIndexSearcher,type=searcher > solr/core0:id=org.apache.solr.update.DirectUpdateHandler2,type=updateHandler > sh> curl 'http://localhost:8983/solr/admin/cores?action=RELOAD&core=core0' > sh> echo 'open 8842 # 8842 is java pid > > domain solr/core0 > > beans > > ' | java -jar jmxterm-1.0-alpha-4-uber.jar > # there's only one bean left after Solr core reload > solr/core0:id=org.apache.solr.search.SolrIndexSearcher,type=Searcher@2e831a91 main > {noformat} > The root cause of this is Solr core reload behavior: > # create new core (which overwrites existing registered MBeans) > # register new core and close old one (we remove/un-register MBeans on oldCore.close) > The correct sequence is: > # unregister MBeans from old core > # create and register new core > # close old core without touching MBeans -- 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