You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Patrik Nordebo (JIRA)" <ji...@apache.org> on 2010/03/24 11:42:35 UTC

[jira] Created: (SOLR-1841) Unregistering of Searcher MBean doesn't work in Websphere

Unregistering of Searcher MBean doesn't work in Websphere
---------------------------------------------------------

                 Key: SOLR-1841
                 URL: https://issues.apache.org/jira/browse/SOLR-1841
             Project: Solr
          Issue Type: Bug
         Environment: Websphere Application Server 6.1
            Reporter: Patrik Nordebo
            Priority: Minor


On a Websphere cluster, all MBeans registered in the default MBean server get renamed on registration (it adds properties based on which node and cell in the Websphere cluster the process was running).  This means that when Solr tries to unregister an MBean (e.g. an old searcher), the old MBean is never removed.  In the case of a rebind the binding of the new MBean fails because it tries to register a name that is already taken.

To get around this the name the mbean gets assigned must be stored somewhere where it can be looked up when we need to remove the binding.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-1841) Unregistering of Searcher MBean doesn't work in Websphere

Posted by "Patrik Nordebo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrik Nordebo updated SOLR-1841:
---------------------------------

    Attachment: patch

Proposed fix: whenever the name returned from the register method differs from the name we passed to the server, store the new name so we can look it up from the original name, and use the server-provided name when unregistering.

> Unregistering of Searcher MBean doesn't work in Websphere
> ---------------------------------------------------------
>
>                 Key: SOLR-1841
>                 URL: https://issues.apache.org/jira/browse/SOLR-1841
>             Project: Solr
>          Issue Type: Bug
>         Environment: Websphere Application Server 6.1
>            Reporter: Patrik Nordebo
>            Priority: Minor
>         Attachments: patch
>
>
> On a Websphere cluster, all MBeans registered in the default MBean server get renamed on registration (it adds properties based on which node and cell in the Websphere cluster the process was running).  This means that when Solr tries to unregister an MBean (e.g. an old searcher), the old MBean is never removed.  In the case of a rebind the binding of the new MBean fails because it tries to register a name that is already taken.
> To get around this the name the mbean gets assigned must be stored somewhere where it can be looked up when we need to remove the binding.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.