You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Alex Petrov (JIRA)" <ji...@apache.org> on 2016/11/07 15:59:58 UTC

[jira] [Commented] (CASSANDRA-12652) Failure in SASIIndexTest.testStaticIndex-compression

    [ https://issues.apache.org/jira/browse/CASSANDRA-12652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15644555#comment-15644555 ] 

Alex Petrov commented on CASSANDRA-12652:
-----------------------------------------

My assumption was as follows: since this is a "compression" run, there are some sstable leftovers from the previous (non-compression) run. One run creates 2 sstables, second run creates 2 sstables. Since “low” threshold of STCS is 4, we trigger a compaction. After comaction, index rebuild is asynchronous, so index might be empty, since there are no sasi memtables… So there’re three scenarios: one when we’ve flushed the index, one where we haven’t and one where we're still reading the old sstables. One of them (unflushed index) would fail.

I've tried running tests, where I would insert same data 2 more times (to create a total of 4 sstables) and "emulate" the long flush for the static cf (by adding a sleep when creating a 5th index for the {{static_sasi_test_cf}}). The test results are as expected:

{code}
junit.framework.AssertionFailedError: 
Expected :1
Actual   :0
{code}

Having that said, we might want to create another issue that would take care of making sure that SASI indexes are served correctly for the compacted tables..

> Failure in SASIIndexTest.testStaticIndex-compression
> ----------------------------------------------------
>
>                 Key: CASSANDRA-12652
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12652
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Testing
>            Reporter: Joel Knighton
>            Assignee: Alex Petrov
>             Fix For: 3.x, 4.x
>
>
> Stacktrace:
> {code}
> junit.framework.AssertionFailedError: expected:<1> but was:<0>
> 	at org.apache.cassandra.index.sasi.SASIIndexTest.testStaticIndex(SASIIndexTest.java:1839)
> 	at org.apache.cassandra.index.sasi.SASIIndexTest.testStaticIndex(SASIIndexTest.java:1786)
> {code}
> Example failure:
> http://cassci.datastax.com/job/trunk_testall/1176/testReport/org.apache.cassandra.index.sasi/SASIIndexTest/testStaticIndex_compression/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)