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

Fix flakey test - org.apache.cassandra.index.sasi.SASIIndexTest testConcurrentMemtableReadsAndWrites

    XMLWordPrintableJSON

Details

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

      Execute SASIIndexTest#testConcurrentMemtableReadsAndWrites in debug mode and set a breakpoint on line 1087 and step over it until the assertion error is thrown.

      Show
      Execute SASIIndexTest#testConcurrentMemtableReadsAndWrites in debug mode and set a breakpoint on line 1087 and step over it until the assertion error is thrown.

    Description

      junit.framework.AssertionFailedError
        at org.apache.cassandra.index.sasi.utils.RangeIterator.<init>(RangeIterator.java:46)
        at org.apache.cassandra.index.sasi.memory.KeyRangeIterator.<init>(KeyRangeIterator.java:42)
        at org.apache.cassandra.index.sasi.memory.TrieMemIndex$ConcurrentTrie.search(TrieMemIndex.java:150)
        at org.apache.cassandra.index.sasi.memory.TrieMemIndex.search(TrieMemIndex.java:102)
        at org.apache.cassandra.index.sasi.memory.IndexMemtable.search(IndexMemtable.java:70)
        at org.apache.cassandra.index.sasi.conf.ColumnIndex.searchMemtable(ColumnIndex.java:138)
        at org.apache.cassandra.index.sasi.TermIterator.build(TermIterator.java:91)
        at org.apache.cassandra.index.sasi.plan.QueryController.getIndexes(QueryController.java:145)
        at org.apache.cassandra.index.sasi.plan.Operation$Builder.complete(Operation.java:434)
        at org.apache.cassandra.index.sasi.plan.QueryPlan.analyze(QueryPlan.java:57)
        at org.apache.cassandra.index.sasi.plan.QueryPlan.execute(QueryPlan.java:68)
        at org.apache.cassandra.index.sasi.SASIIndex.lambda$searcherFor$2(SASIIndex.java:301)
        at org.apache.cassandra.db.ReadCommand.executeLocally(ReadCommand.java:455)
        at org.apache.cassandra.index.sasi.SASIIndexTest.getIndexed(SASIIndexTest.java:2576)
        at org.apache.cassandra.index.sasi.SASIIndexTest.getPaged(SASIIndexTest.java:2537)
        at org.apache.cassandra.index.sasi.SASIIndexTest.testConcurrentMemtableReadsAndWrites(SASIIndexTest.java:1108)
        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)
      

      Attachments

        1. 15526-20200318-trunk-4.0.txt
          5 kB
          Gianluca Righetto
        2. 15526-dtests-results.png
          336 kB
          Gianluca Righetto
        3. 15526-trunk-4.0.txt
          2 kB
          Gianluca Righetto
        4. jvm_15526.zip
          10.44 MB
          Ekaterina Dimitrova
        5. unit_tests_15526
          292 kB
          Ekaterina Dimitrova

        Issue Links

          Activity

            People

              gianluca Gianluca Righetto
              dcapwell David Capwell
              Gianluca Righetto
              Ekaterina Dimitrova, Zhao Yang
              Votes:
              0 Vote for this issue
              Watchers:
              6 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 - 40m
                  40m