cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua McKenzie (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7330) Infinite loop in StreamReader.read during exception condition while running repair
Date Mon, 07 Jul 2014 13:48:33 GMT

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

Joshua McKenzie commented on CASSANDRA-7330:
--------------------------------------------

Without more information it's going to be impossible to tell.  If it were this specific situation
you'd see the failed assertion as the node transitioned into a bad state w/regards to the
ref count on that sstable and then started spinning.

In the future, if you can get a sampling of a few jstacks from the process and/or connect
via JMX to see what threads are eating CPU, that would help us narrow down what could be going
wrong.

> Infinite loop in StreamReader.read during exception condition while running repair
> ----------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-7330
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7330
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: 2.0.8+
>            Reporter: Joshua McKenzie
>            Assignee: Joshua McKenzie
>            Priority: Minor
>              Labels: Core
>             Fix For: 2.0.9
>
>         Attachments: 7330_v1.txt
>
>
> InputStream.skip is returning -1 during exception conditions which leads the following
logic to infinite loop:
> {code:title=loop}
> protected void drain(InputStream dis, long bytesRead) throws IOException
> {
>     long toSkip = totalSize() - bytesRead;
>     toSkip = toSkip - dis.skip(toSkip);
>     while (toSkip > 0)
>         toSkip = toSkip - dis.skip(toSkip);
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message