ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-7398) InstanceNotFoundException appears in the log when a cache is closed and MBeans are disabled
Date Thu, 08 Feb 2018 14:39:00 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-7398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16357010#comment-16357010
] 

ASF GitHub Bot commented on IGNITE-7398:
----------------------------------------

GitHub user pvinokurov opened a pull request:

    https://github.com/apache/ignite/pull/3492

    IGNITE-7398 Disabled MBean registration for cache group if IGNITE_MBEā€¦

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gridgain/apache-ignite ignite-7398

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/ignite/pull/3492.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3492
    
----
commit a39f2f899842ca03e2f9ab90c336f8fa246b8843
Author: pvinokurov <vinokurov.pasha@...>
Date:   2018-02-08T14:22:43Z

    IGNITE-7398 Disabled MBean registration for cache group if IGNITE_MBEANS_DISABLED set
to true

----


> InstanceNotFoundException appears in the log when a cache is closed and MBeans are disabled
> -------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-7398
>                 URL: https://issues.apache.org/jira/browse/IGNITE-7398
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.4
>            Reporter: Stanislav Lukyanov
>            Assignee: Pavel Vinokurov
>            Priority: Minor
>
> If IGNITE_MBEANS_DISABLED is set to true, whenever a cache is started the following error
is logged:
> javax.management.InstanceNotFoundException: org.apache:clsLdr=18b4aac2,igniteInstanceName=mbeans.GridMBeanDisableSelfTest0,group=Cache
groups,name=MyCache
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:427)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:415)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:546)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.cleanup(GridCacheProcessor.java:606)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.stopCacheGroup(GridCacheProcessor.java:2264)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.stopCacheGroup(GridCacheProcessor.java:2253)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.stopCaches(GridCacheProcessor.java:907)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.stop(GridCacheProcessor.java:872)
> 	at org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:2316)
> 	at org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:2182)
> 	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop0(IgnitionEx.java:2512)
> 	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop(IgnitionEx.java:2475)
> 	at org.apache.ignite.internal.IgnitionEx.stop(IgnitionEx.java:362)
> 	at org.apache.ignite.Ignition.stop(Ignition.java:224)
> 	at org.apache.ignite.internal.IgniteKernal.close(IgniteKernal.java:3509)
> 	at org.apache.ignite.util.mbeans.GridMBeanDisableSelfTest.testCorrectMBeanInfo(GridMBeanDisableSelfTest.java:101)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at junit.framework.TestCase.runTest(TestCase.java:176)
> 	at org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:2001)
> 	at org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:133)
> 	at org.apache.ignite.testframework.junits.GridAbstractTest$5.run(GridAbstractTest.java:1916)
> 	at java.lang.Thread.run(Thread.java:748)
> That's because GridCacheProcessor::cleanup unconditionally attempts to unregister cache's
MBean, not checking whether or not the cache actually has an MBean registered for it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message