[
https://issues.apache.org/jira/browse/SOLR-6918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14266822#comment-14266822
]
Shalin Shekhar Mangar commented on SOLR-6918:
---------------------------------------------
Yeah, that's my fault. This started with SOLR-2927 where we close the searcher
before JMX is closed. For some strange reason, closing the jmx registry needs
to access the value and hence this error.
> No need to log exceptions (as warn) generated when creating MBean stats if
> the core is shutting down
> ----------------------------------------------------------------------------------------------------
>
> Key: SOLR-6918
> URL: https://issues.apache.org/jira/browse/SOLR-6918
> Project: Solr
> Issue Type: Improvement
> Components: JMX
> Reporter: Timothy Potter
> Assignee: Timothy Potter
> Priority: Minor
> Attachments: SOLR-6918.patch
>
>
> I'm seeing tons of this warning when distributed SolrCloud tests are shutting
> down ...
> I don't think we should log a WARN message if the exception is
> AlreadyClosedException since the core is closing
> [junit4] 2> 31971 T37 oasc.JmxMonitoredMap$SolrDynamicMBean.getMBeanInfo
> WARN Could not getStatistics on info bean
> org.apache.solr.handler.ReplicationHandler
> org.apache.solr.common.SolrException: openNewSearcher called on closed core
> [junit4] 2> at
> org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1498)
> [junit4] 2> at
> org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1736)
> [junit4] 2> at
> org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1481)
> [junit4] 2> at
> org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1416)
> [junit4] 2> at
> org.apache.solr.handler.ReplicationHandler.getIndexVersion(ReplicationHandler.java:558)
> [junit4] 2> at
> org.apache.solr.handler.ReplicationHandler.getStatistics(ReplicationHandler.java:575)
> [junit4] 2> at
> org.apache.solr.core.JmxMonitoredMap$SolrDynamicMBean.getMBeanInfo(JmxMonitoredMap.java:257)
> [junit4] 2> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getClassName(DefaultMBeanServerInterceptor.java:1804)
> [junit4] 2> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.safeGetClassName(DefaultMBeanServerInterceptor.java:1595)
> [junit4] 2> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.objectInstancesFromFilteredNamedObjects(DefaultMBeanServerInterceptor.java:1556)
> [junit4] 2> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.queryMBeansImpl(DefaultMBeanServerInterceptor.java:513)
> [junit4] 2> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.queryNames(DefaultMBeanServerInterceptor.java:526)
> [junit4] 2> at
> com.sun.jmx.mbeanserver.JmxMBeanServer.queryNames(JmxMBeanServer.java:619)
> [junit4] 2> at
> org.apache.solr.core.JmxMonitoredMap.clear(JmxMonitoredMap.java:120)
> [junit4] 2> at
> org.apache.solr.core.SolrCore.close(SolrCore.java:1161)
> [junit4] 2> at
> org.apache.solr.core.CoreContainer.unload(CoreContainer.java:691)
> [junit4] 2> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleUnloadAction(CoreAdminHandler.java:676)
> [junit4] 2> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:209)
> [junit4] 2> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:188)
> [junit4] 2> at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:144)
> [junit4] 2> at
> org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:738)
> [junit4] 2> at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254)
> [junit4] 2> at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:201)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]