Stefania created CASSANDRA-9537:
-----------------------------------

             Summary: Sstables created with MockSchema occasionally triggers 
assertions
                 Key: CASSANDRA-9537
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9537
             Project: Cassandra
          Issue Type: Test
          Components: Tests
            Reporter: Stefania
            Assignee: Stefania
             Fix For: 2.2.x


It's extremely hard to reproduce but occasionally some Jenkins tests fail as 
follows:

http://cassci.datastax.com/job/trunk_utest/229/testReport/org.apache.cassandra.db.lifecycle/TrackerTest/testAddInitialSSTables/

{code}
junit.framework.AssertionFailedError
        at 
org.apache.cassandra.utils.concurrent.Ref$State.assertNotReleased(Ref.java:157)
        at org.apache.cassandra.utils.concurrent.Ref.ref(Ref.java:113)
        at 
org.apache.cassandra.io.sstable.format.SSTableReader$GlobalTidy.get(SSTableReader.java:2111)
        at 
org.apache.cassandra.io.sstable.format.SSTableReader$DescriptorTypeTidy.<init>(SSTableReader.java:1980)
        at 
org.apache.cassandra.io.sstable.format.SSTableReader$DescriptorTypeTidy.get(SSTableReader.java:2017)
        at 
org.apache.cassandra.io.sstable.format.SSTableReader$InstanceTidier.setup(SSTableReader.java:1897)
        at 
org.apache.cassandra.io.sstable.format.SSTableReader.setup(SSTableReader.java:1842)
        at 
org.apache.cassandra.io.sstable.format.SSTableReader.internalOpen(SSTableReader.java:530)
        at org.apache.cassandra.MockSchema.sstable(MockSchema.java:128)
        at org.apache.cassandra.MockSchema.sstable(MockSchema.java:92)
        at org.apache.cassandra.MockSchema.sstable(MockSchema.java:87)
        at 
org.apache.cassandra.db.lifecycle.TrackerTest.testAddInitialSSTables(TrackerTest.java:146)
{code}

I propose not to reuse cfname in MockSchema.sstable() and in fact to get rid of 
the shared MockSchema.cfs which has caused other test problems, see 
CASSANDRA-9514.



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

Reply via email to