cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua McKenzie (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-7262) During streaming: java.lang.AssertionError: Reference counter -1
Date Wed, 21 May 2014 18:01:47 GMT


Joshua McKenzie commented on CASSANDRA-7262:

Rather than synchronizing upstream, I'll just synchronize closeSession (which is likely what
you were implying earlier).  Single-point of synchronization to communicate the atomicity
of the method; I didn't like the idea of syncing the upstream methods to get downstream sync.

As for the exceptions in CompactionTask - the logic dealing with overlapping sstable computation
and release is identical on trunk to 2.0.7 and I didn't reproduce that during any of my testing.
 Going to have to chew on that for a bit - my gut feeling looking at the logs and code is
that the CompactionTask assertions are unrelated to the streaming closeSession issue given
the different files involved and time frame between the messages in the log file.

> During streaming: java.lang.AssertionError: Reference counter -1
> ----------------------------------------------------------------
>                 Key: CASSANDRA-7262
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: Cassandra 2.07, x86-64 Ubuntu 12.04.4, Oracle java 1.7.0_45
>            Reporter: Duncan Sands
>            Assignee: Joshua McKenzie
>            Priority: Minor
>             Fix For: 2.0.8, 2.1 rc1
>         Attachments: 7262_v1.txt, system.log.gz
> Got this assertion failure this weekend during repair:
> ERROR [STREAM-IN-/] 2014-05-17 01:17:52,332 (line 420)
[Stream #3a3ac8a2-dd50-11e3-b3c1-6bf6dccd6457] Streaming error occurred
> java.lang.RuntimeException: Outgoing stream handler has been closed
>         at org.apache.cassandra.streaming.ConnectionHandler.sendMessage(
>         at org.apache.cassandra.streaming.StreamSession.receive(
>         at org.apache.cassandra.streaming.StreamSession.messageReceived(
>         at org.apache.cassandra.streaming.ConnectionHandler$
>         at
> ERROR [STREAM-IN-/] 2014-05-17 01:17:52,350 (line 198)
Exception in thread Thread[STREAM-IN-/,5,RMI Runtime]
> java.lang.AssertionError: Reference counter -1 for /mnt/ssd1/cassandra/data/ldn_production/historical_accounts/ldn_production-historical_accounts-jb-79827-Data.db
>         at
>         at org.apache.cassandra.streaming.StreamTransferTask.abort(
>         at org.apache.cassandra.streaming.StreamSession.closeSession(
>         at org.apache.cassandra.streaming.StreamSession.onError(
>         at org.apache.cassandra.streaming.ConnectionHandler$
>         at
> followed by a few more (the reference counter got down to -3).  Got the same kind of
assertion failure on one other node (in a different data centre; there are 21 nodes altogether
distributed over 4 data centres).
> I've attached the relevant part of the log.  It starts quite a bit before the assertion
failure at the first exception on this node ("Cannot proceed on repair because a neighbor
... is dead"), and finishes a few hours afterwards when the node was restarted.
> Edit: The following Reference counter assertion failures followed the 1st on a different
file and have a different stack trace:
> ERROR [CompactionExecutor:382] 2014-05-17 01:17:53,157 (line 198)
Exception in thread Thread[CompactionExecutor:382,1,main]
> java.lang.AssertionError: Reference counter -1 for /mnt/ssd1/cassandra/data/ldn_production/historical_accounts/ldn_production-historical_accounts-jb-83888-Data.db
>    at
>    at
>    at org.apache.cassandra.db.compaction.CompactionController.close(
>    at org.apache.cassandra.db.compaction.CompactionTask.runWith(
>    at
>    at
>    at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(
>    at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(
>    at org.apache.cassandra.db.compaction.CompactionManager$
>    ...

This message was sent by Atlassian JIRA

View raw message