cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-7275) Errors in FlushRunnable may leave threads hung
Date Wed, 21 May 2014 00:15:39 GMT
Tyler Hobbs created CASSANDRA-7275:

             Summary: Errors in FlushRunnable may leave threads hung
                 Key: CASSANDRA-7275
             Project: Cassandra
          Issue Type: Bug
          Components: Core
            Reporter: Tyler Hobbs
            Priority: Critical
             Fix For: 2.0.8

In Memtable.FlushRunnable, the CountDownLatch will never be counted down if there are errors,
which results in hanging any threads that are waiting for the flush to complete.  For example,
an error like this causes the problem:

ERROR [FlushWriter:474] 2014-05-20 12:10:31,137 (line 198) Exception
in thread Thread[FlushWriter:474,5,main]
    at java.nio.Buffer.position(Unknown Source)
    at org.apache.cassandra.db.marshal.AbstractCompositeType.getBytes(
    at org.apache.cassandra.db.marshal.AbstractCompositeType.getWithShortLength(
    at org.apache.cassandra.db.marshal.AbstractCompositeType.split(
    at org.apache.cassandra.db.ColumnFamily.getColumnStats(
    at org.apache.cassandra.db.Memtable$FlushRunnable.writeSortedContents(
    at org.apache.cassandra.db.Memtable$FlushRunnable.runWith(
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$ Source)
    at Source)

This message was sent by Atlassian JIRA

View raw message