java.lang.AssertionError: Expected 1 slow operation logs, but was 0. expected:<1> but was:<0>

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by hasancelik
, 1 year ago
Expected 1 slow operation logs, but was 0. expected:<1> but was:<0>
via GitHub by hasancelik
, 1 year ago
Expected 1 slow operation logs, but was 0. expected:<1> but was:<0>
via GitHub by hasancelik
, 1 year ago
Expected 1 slow operation logs, but was 2. expected:<1> but was:<2>
via GitHub by bilalyasar
, 2 years ago
Expected 0 slow operation logs, but was 1 expected:<0> but was:<1>
via GitHub by mdogan
, 1 year ago
Expected 1 slow operation logs, but was 0. expected:<1> but was:<0>
java.lang.AssertionError: Expected 1 slow operation logs, but was 0. expected:<1> but was:<0>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:118)
at com.hazelcast.test.HazelcastTestSupport.assertEqualsStringFormat(HazelcastTestSupport.java:944)
at com.hazelcast.spi.impl.operationexecutor.slowoperationdetector.SlowOperationDetectorAbstractTest.assertNumberOfSlowOperationLogs(SlowOperationDetectorAbstractTest.java:127)
at com.hazelcast.spi.impl.operationexecutor.slowoperationdetector.SlowOperationDetectorAbstractTest$1.run(SlowOperationDetectorAbstractTest.java:112)
at com.hazelcast.test.HazelcastTestSupport.assertTrueEventually(HazelcastTestSupport.java:905)
at com.hazelcast.test.HazelcastTestSupport.assertTrueEventually(HazelcastTestSupport.java:919)
at com.hazelcast.spi.impl.operationexecutor.slowoperationdetector.SlowOperationDetectorAbstractTest.getSlowOperationLogsAndAssertNumberOfSlowOperationLogs(SlowOperationDetectorAbstractTest.java:108)
at com.hazelcast.spi.impl.operationexecutor.slowoperationdetector.SlowOperationDetectorBasicTest.testNestedSlowOperationOnSamePartition(SlowOperationDetectorBasicTest.java:144)

Users with the same issue

5 times, 10 hours ago
Once, 2 days ago
Once, 1 week ago
2 times, 1 week ago
Once, 2 weeks ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.