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

Fix flaky tests org.apache.cassandra.service.MoveTest testStateJumpToNormal and testMoveWithPendingRangesNetworkStrategyRackAwareThirtyNodes

    XMLWordPrintableJSON

Details

    • Correctness - Test Failure
    • Normal
    • Normal
    • Unit Test
    • All
    • None
    • Hide

      For testing, check the reproduction steps in my comment below and verify that with the patch, the main thread waits while the endpoints are being evicted, before running another test method.
      Unit tests results attached for both Java 11 and 8.
      Since this is a change only in the test realm, no further documentation is required.

      Show
      For testing, check the reproduction steps in my comment below and verify that with the patch, the main thread waits while the endpoints are being evicted, before running another test method. Unit tests results attached for both Java 11 and 8. Since this is a change only in the test realm, no further documentation is required.

    Description

      testStateJumpToNormal failure was on java 11

      java.lang.NullPointerException
      	at org.apache.cassandra.gms.Gossiper.getHostId(Gossiper.java:1028)
      	at org.apache.cassandra.gms.Gossiper.getHostId(Gossiper.java:1023)
      	at org.apache.cassandra.service.StorageService.handleStateNormal(StorageService.java:2513)
      	at org.apache.cassandra.service.StorageService.onChange(StorageService.java:2055)
      	at org.apache.cassandra.Util.createInitialRing(Util.java:225)
      	at org.apache.cassandra.service.MoveTest.testStateJumpToNormal(MoveTest.java:935)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      

      testMoveWithPendingRangesNetworkStrategyRackAwareThirtyNodes failure was on java 8

      java.lang.NullPointerException
      	at org.apache.cassandra.service.StorageService.updatePeerInfo(StorageService.java:2174)
      	at org.apache.cassandra.service.StorageService.handleStateNormal(StorageService.java:2511)
      	at org.apache.cassandra.service.StorageService.onChange(StorageService.java:2055)
      	at org.apache.cassandra.Util.createInitialRing(Util.java:225)
      	at org.apache.cassandra.service.MoveTest.testMoveWithPendingRangesNetworkStrategyRackAwareThirtyNodes(MoveTest.java:199)
      

      Attachments

        Issue Links

          Activity

            People

              gianluca Gianluca Righetto
              dcapwell David Capwell
              Gianluca Righetto
              Brandon Williams
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m