[ https://issues.apache.org/jira/browse/IGNITE-13227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17153729#comment-17153729 ]
Ignite TC Bot commented on IGNITE-13227: ---------------------------------------- {panel:title=Branch: [pull/8005/head] Base: [master] : No blockers found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel} {panel:title=Branch: [pull/8005/head] Base: [master] : New Tests (9)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1} {color:#00008b}Cache 7{color} [tests 1] * {color:#013220}IgniteCacheTestSuite7: CacheMetricsManageTest.testCacheSizeOnInactiveCluster - PASSED{color} {color:#00008b}Service Grid{color} [tests 4] * {color:#013220}IgniteServiceGridTestSuite: ServiceDeploymentProcessIdSelfTest.topologyVersion[Test event=IgniteBiTuple [val1=DiscoveryEvent [evtNode=d9f2e3f7-2300-4b4a-944a-9014df5ca796, topVer=0, nodeId8=d486eef9, msg=, type=NODE_JOINED, tstamp=1594193704470], val2=AffinityTopologyVersion [topVer=-8059358443962014770, minorTopVer=0]]] - PASSED{color} * {color:#013220}IgniteServiceGridTestSuite: ServiceDeploymentProcessIdSelfTest.requestId[Test event=IgniteBiTuple [val1=DiscoveryEvent [evtNode=d9f2e3f7-2300-4b4a-944a-9014df5ca796, topVer=0, nodeId8=d486eef9, msg=, type=NODE_JOINED, tstamp=1594193704470], val2=AffinityTopologyVersion [topVer=-8059358443962014770, minorTopVer=0]]] - PASSED{color} * {color:#013220}IgniteServiceGridTestSuite: ServiceDeploymentProcessIdSelfTest.topologyVersion[Test event=IgniteBiTuple [val1=DiscoveryCustomEvent [customMsg=ServiceChangeBatchRequest [id=36ab36d2371-f4f5e988-2d5d-4ff1-b9f8-b77dcbdd3524, reqs=SingletonList [ServiceUndeploymentRequest []]], affTopVer=null, super=DiscoveryEvent [evtNode=b28f21b7-6bfe-4f1e-a19e-b457855da26a, topVer=0, nodeId8=b28f21b7, msg=null, type=DISCOVERY_CUSTOM_EVT, tstamp=1594193704470]], val2=AffinityTopologyVersion [topVer=-8777312444905482645, minorTopVer=0]]] - PASSED{color} * {color:#013220}IgniteServiceGridTestSuite: ServiceDeploymentProcessIdSelfTest.requestId[Test event=IgniteBiTuple [val1=DiscoveryCustomEvent [customMsg=ServiceChangeBatchRequest [id=36ab36d2371-f4f5e988-2d5d-4ff1-b9f8-b77dcbdd3524, reqs=SingletonList [ServiceUndeploymentRequest []]], affTopVer=null, super=DiscoveryEvent [evtNode=b28f21b7-6bfe-4f1e-a19e-b457855da26a, topVer=0, nodeId8=b28f21b7, msg=null, type=DISCOVERY_CUSTOM_EVT, tstamp=1594193704470]], val2=AffinityTopologyVersion [topVer=-8777312444905482645, minorTopVer=0]]] - PASSED{color} {color:#00008b}Service Grid (legacy mode){color} [tests 4] * {color:#013220}IgniteServiceGridTestSuite: ServiceDeploymentProcessIdSelfTest.topologyVersion[Test event=IgniteBiTuple [val1=DiscoveryCustomEvent [customMsg=ServiceChangeBatchRequest [id=5ca726d2371-d58f69b1-7e9b-46ce-9ed1-9aec5d662f9d, reqs=SingletonList [ServiceUndeploymentRequest []]], affTopVer=null, super=DiscoveryEvent [evtNode=ab098635-5508-41d3-9fcf-e5a26cb784d7, topVer=0, nodeId8=ab098635, msg=null, type=DISCOVERY_CUSTOM_EVT, tstamp=1594193639349]], val2=AffinityTopologyVersion [topVer=-6302947696903529487, minorTopVer=0]]] - PASSED{color} * {color:#013220}IgniteServiceGridTestSuite: ServiceDeploymentProcessIdSelfTest.requestId[Test event=IgniteBiTuple [val1=DiscoveryCustomEvent [customMsg=ServiceChangeBatchRequest [id=5ca726d2371-d58f69b1-7e9b-46ce-9ed1-9aec5d662f9d, reqs=SingletonList [ServiceUndeploymentRequest []]], affTopVer=null, super=DiscoveryEvent [evtNode=ab098635-5508-41d3-9fcf-e5a26cb784d7, topVer=0, nodeId8=ab098635, msg=null, type=DISCOVERY_CUSTOM_EVT, tstamp=1594193639349]], val2=AffinityTopologyVersion [topVer=-6302947696903529487, minorTopVer=0]]] - PASSED{color} * {color:#013220}IgniteServiceGridTestSuite: ServiceDeploymentProcessIdSelfTest.topologyVersion[Test event=IgniteBiTuple [val1=DiscoveryEvent [evtNode=9f5a8745-df8e-4548-9beb-6ca81e71e59e, topVer=0, nodeId8=bb53ce0c, msg=, type=NODE_JOINED, tstamp=1594193639349], val2=AffinityTopologyVersion [topVer=4832838139885376742, minorTopVer=0]]] - PASSED{color} * {color:#013220}IgniteServiceGridTestSuite: ServiceDeploymentProcessIdSelfTest.requestId[Test event=IgniteBiTuple [val1=DiscoveryEvent [evtNode=9f5a8745-df8e-4548-9beb-6ca81e71e59e, topVer=0, nodeId8=bb53ce0c, msg=, type=NODE_JOINED, tstamp=1594193639349], val2=AffinityTopologyVersion [topVer=4832838139885376742, minorTopVer=0]]] - PASSED{color} {panel} [TeamCity *--> Run :: All* Results|https://ci.ignite.apache.org/viewLog.html?buildId=5448082&buildTypeId=IgniteTests24Java8_RunAll] > AssertionError on getting cache size from the mbean on the inactive cluster > --------------------------------------------------------------------------- > > Key: IGNITE-13227 > URL: https://issues.apache.org/jira/browse/IGNITE-13227 > Project: Ignite > Issue Type: Bug > Reporter: Amelchev Nikita > Assignee: Amelchev Nikita > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > The reproducer for {{CacheMetricsManageTest}}: > {noformat} > /** @throws Exception If failed. */ > @Test > public void testCacheSize() throws Exception { > persistence = true; > startGrid(0); > CacheMetricsMXBean mxBean = mxBean(0, CACHE1, > CacheClusterMetricsMXBeanImpl.class); > long size = mxBean.getCacheSize(); > assertEquals(0, size); > } > {noformat} > AssertionError: > {noformat} > java.lang.AssertionError: AffinityTopologyVersion [topVer=-1, minorTopVer=0] > at > org.apache.ignite.internal.processors.affinity.GridAffinityAssignmentCache.cachedAffinity(GridAffinityAssignmentCache.java:794) > at > org.apache.ignite.internal.processors.affinity.GridAffinityAssignmentCache.cachedAffinity(GridAffinityAssignmentCache.java:771) > at > org.apache.ignite.internal.processors.affinity.GridAffinityAssignmentCache.primaryPartitions(GridAffinityAssignmentCache.java:697) > at > org.apache.ignite.internal.processors.cache.IgniteCacheOffheapManagerImpl.cacheData(IgniteCacheOffheapManagerImpl.java:431) > at > org.apache.ignite.internal.processors.cache.IgniteCacheOffheapManagerImpl.cacheEntriesCount(IgniteCacheOffheapManagerImpl.java:398) > at > org.apache.ignite.internal.processors.cache.distributed.GridDistributedCacheAdapter.localSizeLong(GridDistributedCacheAdapter.java:284) > at > org.apache.ignite.internal.processors.cache.GridCacheAdapter.localSize(GridCacheAdapter.java:4151) > at > org.apache.ignite.internal.processors.cache.CacheMetricsImpl.getEntriesStat(CacheMetricsImpl.java:1272) > at > org.apache.ignite.internal.processors.cache.CacheMetricsSnapshotV2.<init>(CacheMetricsSnapshotV2.java:375) > at > org.apache.ignite.internal.processors.cache.GridCacheAdapter.localMetrics(GridCacheAdapter.java:3546) > at > org.apache.ignite.internal.processors.cache.GridCacheAdapter.clusterMetrics(GridCacheAdapter.java:3540) > at > org.apache.ignite.internal.processors.cache.GridCacheAdapter.clusterMetrics(GridCacheAdapter.java:3522) > at > org.apache.ignite.internal.processors.cache.CacheClusterMetricsMXBeanImpl.getCacheSize(CacheClusterMetricsMXBeanImpl.java:119) > 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 sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) > 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 sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275) > at > com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112) > at > com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46) > at > com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237) > at > com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:83) > at > com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:206) > at javax.management.StandardMBean.getAttribute(StandardMBean.java:372) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:647) > at > com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678) > at > javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:273) > at com.sun.proxy.$Proxy30.getCacheSize(Unknown Source) > at > org.apache.ignite.internal.processors.cache.CacheMetricsManageTest.testCacheSize(CacheMetricsManageTest.java:833) > 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 > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) > at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) > at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) > at > org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) > at > org.apache.ignite.testframework.junits.GridAbstractTest$7.run(GridAbstractTest.java:2232) > at java.lang.Thread.run(Thread.java:748) > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)