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

GitHub | hasancelik | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 6893#228694583

    GitHub | 9 months ago | hasancelik
    java.lang.AssertionError: Expected 1 slow operation logs, but was 2. expected:<1> but was:<2>
  2. 0

    GitHub comment 6893#238494504

    GitHub | 7 months ago | hasancelik
    java.lang.AssertionError: Expected 1 slow operation logs, but was 0. expected:<1> but was:<0>
  3. 0

    GitHub comment 6893#251680641

    GitHub | 6 months ago | hasancelik
    java.lang.AssertionError: Expected 1 slow operation logs, but was 0. expected:<1> but was:<0>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [TEST-FAILURE] SlowOperationDetector_purgeTest.testPurging_SlowOperationLog

    GitHub | 2 years ago | bilalyasar
    java.lang.AssertionError: Expected 0 slow operation logs, but was 1 expected:<0> but was:<1>
  6. 0

    [TEST-FAILURE] SlowOperationDetectorBasicTest.testSlowRecursiveOperation

    GitHub | 2 years ago | bilalyasar
    java.lang.AssertionError: Expected 50 total invocations, but was 43 expected:<50> but was:<43>
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.AssertionError

    Expected 1 slow operation logs, but was 2. expected:<1> but was:<2>

    at org.junit.Assert.fail()
  2. JUnit
    Assert.assertEquals
    1. org.junit.Assert.fail(Assert.java:88)
    2. org.junit.Assert.failNotEquals(Assert.java:834)
    3. org.junit.Assert.assertEquals(Assert.java:118)
    3 frames
  3. com.hazelcast.test
    HazelcastTestSupport.assertEqualsStringFormat
    1. com.hazelcast.test.HazelcastTestSupport.assertEqualsStringFormat(HazelcastTestSupport.java:890)
    1 frame
  4. com.hazelcast.spi
    SlowOperationDetectorAbstractTest$1.run
    1. com.hazelcast.spi.impl.operationexecutor.slowoperationdetector.SlowOperationDetectorAbstractTest.assertNumberOfSlowOperationLogs(SlowOperationDetectorAbstractTest.java:125)
    2. com.hazelcast.spi.impl.operationexecutor.slowoperationdetector.SlowOperationDetectorAbstractTest$1.run(SlowOperationDetectorAbstractTest.java:118)
    2 frames
  5. com.hazelcast.test
    HazelcastTestSupport.assertTrueEventually
    1. com.hazelcast.test.HazelcastTestSupport.assertTrueEventually(HazelcastTestSupport.java:851)
    2. com.hazelcast.test.HazelcastTestSupport.assertTrueEventually(HazelcastTestSupport.java:865)
    2 frames
  6. com.hazelcast.spi
    SlowOperationDetectorBasicTest.testNestedSlowOperationOnPartitionAndGenericOperationThreads
    1. com.hazelcast.spi.impl.operationexecutor.slowoperationdetector.SlowOperationDetectorAbstractTest.getSlowOperationLogsAndAssertNumberOfSlowOperationLogs(SlowOperationDetectorAbstractTest.java:114)
    2. com.hazelcast.spi.impl.operationexecutor.slowoperationdetector.SlowOperationDetectorBasicTest.testNestedSlowOperationOnPartitionAndGenericOperationThreads(SlowOperationDetectorBasicTest.java:157)
    2 frames