Valery Shorin created IGNITE-20737:
--------------------------------------
Summary: Idle Verify fails with DEBUG log level
Key: IGNITE-20737
URL: https://issues.apache.org/jira/browse/IGNITE-20737
Project: Ignite
Issue Type: Bug
Affects Versions: 2.15
Reporter: Valery Shorin
In case if idle verify executed with DEBUG log level it fails with error:
{code:java}
Exception: org.apache.ignite.IgniteException Cluster not idle. Modifications
found in caches or groups: [grpName=default, grpId=1544803905, partId=30]
changed during size calculation [updCntrBefore=Counter [init=0, val=1],
updCntrAfter=Counter [init=0, val=1]]
{code}
This issue can be reproduced by the following test (shoud be added to
\{{GridCommandHandlerTest}}:
{code:java}
@Test
public void testCacheIdleVerifyLogLevelDebug() throws Exception {
IgniteEx ignite = startGrids(3);
ignite.cluster().state(ACTIVE);
IgniteCache<Object, Object> cache = ignite.createCache(new
CacheConfiguration<>(DEFAULT_CACHE_NAME)
.setAffinity(new RendezvousAffinityFunction(false, 32))
.setBackups(1));
cache.put("key", "value");
injectTestSystemOut();
setLoggerDebugLevel();
assertEquals(EXIT_CODE_OK, execute("--cache", "idle_verify"));
assertContains(log, testOut.toString(), "no conflicts have been found");
} {code}
The reason of this failure - {{equals(}} method is not defined for
{{PartitionUpdateCounterDebugWrapper}} class
--
This message was sent by Atlassian Jira
(v8.20.10#820010)