Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-18944

Test failure: org.apache.cassandra.simulator.test.ShortPaxosSimulationTest.simulationTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Duplicate
    • 5.0-rc1, 5.0, 5.1
    • Test/unit
    • None
    • Correctness - Test Failure
    • Normal
    • Normal
    • Unit Test
    • All
    • None

    Description

      The simulator test org.apache.cassandra.simulator.test.ShortPaxosSimulationTest#simulationTest is flaky on 5.0 and trunk:

      org.apache.cassandra.simulator.SimulationException: Failed on seed 0xb01206bb3b021127
      Caused by: java.lang.ClassCastException: class org.apache.cassandra.net.NoPayload cannot be cast to class org.apache.cassandra.gms.GossipShutdown (org.apache.cassandra.net.NoPayload and org.apache.cassandra.gms.GossipShutdown are in unnamed module of loader org.apache.cassandra.distributed.shared.InstanceClassLoader @68801feb)
      	at org.apache.cassandra.gms.GossipShutdown$Serializer.serialize(GossipShutdown.java:41)
      	at org.apache.cassandra.net.Message$Serializer.serialize(Message.java:722)
      	at org.apache.cassandra.distributed.impl.Instance.serializeMessage(Instance.java:427)
      	at org.apache.cassandra.distributed.impl.Instance.lambda$registerOutboundFilter$5(Instance.java:370)
      	at org.apache.cassandra.net.OutboundSink$Filtered.accept(OutboundSink.java:54)
      	at org.apache.cassandra.net.OutboundSink.accept(OutboundSink.java:70)
      	at org.apache.cassandra.net.MessagingService.send(MessagingService.java:449)
      	at org.apache.cassandra.net.MessagingService.send(MessagingService.java:419)
      	at org.apache.cassandra.gms.Gossiper.unsafeSendShutdown(Gossiper.java:2634)
      	at org.apache.cassandra.simulator.cluster.OnInstanceSendShutdown.lambda$invokableSendShutdown$1(OnInstanceSendShutdown.java:48)
      	at org.apache.cassandra.concurrent.FutureTask$1.call(FutureTask.java:96)
      	at org.apache.cassandra.concurrent.FutureTask.call(FutureTask.java:61)
      	at org.apache.cassandra.concurrent.FutureTask.run(FutureTask.java:71)
      	at org.apache.cassandra.concurrent.FutureTask$1.call(FutureTask.java:96)
      	at org.apache.cassandra.concurrent.SyncFutureTask$1.call(SyncFutureTask.java:46)
      	at org.apache.cassandra.concurrent.SyncFutureTask.run(SyncFutureTask.java:68)
      	at org.apache.cassandra.simulator.systems.InterceptingExecutor$AbstractSingleThreadedExecutorPlus.lambda$new$0(InterceptingExecutor.java:584)
      	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
      	at java.base/java.lang.Thread.run(Thread.java:829)
      

      The test failure can easily be reproduced on CircleCI with:

      .circleci/generate.sh -sp \
        -e REPEATED_SIMULATOR_DTESTS=org.apache.cassandra.simulator.test.ShortPaxosSimulationTest \
        -e REPEATED_SIMULATOR_DTESTS_COUNT=100
      

      Flakiness seems ~18%.

      The test failure is not reported on Butler because simulator tests are not run by Jenkins.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              adelapena Andres de la Peña
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: