Jay Zhuang created CASSANDRA-13833:
--------------------------------------

             Summary: Failed compaction is not captured
                 Key: CASSANDRA-13833
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13833
             Project: Cassandra
          Issue Type: Bug
          Components: Compaction
            Reporter: Jay Zhuang
            Assignee: Jay Zhuang


Follow up for CASSANDRA-13785, when the compaction failed, it fails silently. 
No error message is logged and exceptions metrics is not updated. Basically, 
it's unable to get the exception: 
[CompactionManager.java:1491|https://github.com/apache/cassandra/blob/cassandra-2.2/src/java/org/apache/cassandra/db/compaction/CompactionManager.java#L1491]

Here is the call stack:
{code}
    at 
org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:195)
    at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
    at 
org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:89)
    at 
org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:61)
    at 
org.apache.cassandra.db.compaction.CompactionManager$BackgroundCompactionCandidate.run(CompactionManager.java:264)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at 
org.apache.cassandra.concurrent.NamedThreadFactory.lambda$threadLocalDeallocator$0(NamedThreadFactory.java:79)
    at java.lang.Thread.run(Thread.java:745)
{code}
There're 2 {{FutureTask}} in the call stack, for example 
{{FutureTask1(FutureTask2))}}, If the call thrown an exception, {{FutureTask2}} 
sets the status, save the exception and return. But FutureTask1 doesn't get any 
exception, then set the status to normal. So we're unable to get the exception 
in:
[CompactionManager.java:1491|https://github.com/apache/cassandra/blob/cassandra-2.2/src/java/org/apache/cassandra/db/compaction/CompactionManager.java#L1491]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to