You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "James Mello (JIRA)" <ji...@apache.org> on 2010/07/09 20:46:50 UTC

[jira] Created: (CASSANDRA-1264) Please add the ability to provide retry logic for the ColumnFamilyRecordWriter and ColumnFamilyRecordReader

Please add the ability to provide retry logic for the ColumnFamilyRecordWriter and ColumnFamilyRecordReader
-----------------------------------------------------------------------------------------------------------

                 Key: CASSANDRA-1264
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1264
             Project: Cassandra
          Issue Type: Improvement
          Components: Hadoop
            Reporter: James Mello


Looking at the code for the ColumnFamilyRecordWriter and ColumnFamilyRecordReader, if the service throws a backpressure exception, the map/reduce framework will end up having to do retries to continue on the job. This failure scenario is pretty expensive and doesn't address transient load exceptions. If the hadoop integration can add retry logic internally for these scenarios, then the overall system would be greatly improved (IMO).

A current idea on this would be to use a custom thread pool executor. Then the afterExecution method could be overridden to do retry if a specific type of retry class is provided in the job conf. I'll be trying to get a code example out soon as we need this internally, but if it proves to be a reasonable model, we'd like to try to help out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1264) Please add the ability to provide retry logic for the ColumnFamilyRecordWriter and ColumnFamilyRecordReader

Posted by "Juho Mäkinen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-1264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904549#action_12904549 ] 

Juho Mäkinen commented on CASSANDRA-1264:
-----------------------------------------

I've ran into the same problem when I'm trying to do mapreduce on a super column family which contains too big rows that the MR tasks occasionally timeout.

> Please add the ability to provide retry logic for the ColumnFamilyRecordWriter and ColumnFamilyRecordReader
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1264
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1264
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Hadoop
>            Reporter: James Mello
>
> Looking at the code for the ColumnFamilyRecordWriter and ColumnFamilyRecordReader, if the service throws a backpressure exception, the map/reduce framework will end up having to do retries to continue on the job. This failure scenario is pretty expensive and doesn't address transient load exceptions. If the hadoop integration can add retry logic internally for these scenarios, then the overall system would be greatly improved (IMO).
> A current idea on this would be to use a custom thread pool executor. Then the afterExecution method could be overridden to do retry if a specific type of retry class is provided in the job conf. I'll be trying to get a code example out soon as we need this internally, but if it proves to be a reasonable model, we'd like to try to help out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (CASSANDRA-1264) Please add the ability to provide retry logic for the ColumnFamilyRecordWriter and ColumnFamilyRecordReader

Posted by "Stu Hood (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-1264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stu Hood reopened CASSANDRA-1264:
---------------------------------


I'm reopening this because at the very least we would want to try all endpoints before giving up. Also, the improvement on CASSANDRA-959 will minimize timeouts, but it doesn't help at all with dead nodes, which we should discover and avoid.

> Please add the ability to provide retry logic for the ColumnFamilyRecordWriter and ColumnFamilyRecordReader
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1264
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1264
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Hadoop
>            Reporter: James Mello
>
> Looking at the code for the ColumnFamilyRecordWriter and ColumnFamilyRecordReader, if the service throws a backpressure exception, the map/reduce framework will end up having to do retries to continue on the job. This failure scenario is pretty expensive and doesn't address transient load exceptions. If the hadoop integration can add retry logic internally for these scenarios, then the overall system would be greatly improved (IMO).
> A current idea on this would be to use a custom thread pool executor. Then the afterExecution method could be overridden to do retry if a specific type of retry class is provided in the job conf. I'll be trying to get a code example out soon as we need this internally, but if it proves to be a reasonable model, we'd like to try to help out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CASSANDRA-1264) Please add the ability to provide retry logic for the ColumnFamilyRecordWriter and ColumnFamilyRecordReader

Posted by "Juho Mäkinen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-1264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juho Mäkinen resolved CASSANDRA-1264.
-------------------------------------

    Resolution: Duplicate

This issue is a duplicate  of https://issues.apache.org/jira/browse/CASSANDRA-919

> Please add the ability to provide retry logic for the ColumnFamilyRecordWriter and ColumnFamilyRecordReader
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1264
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1264
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Hadoop
>            Reporter: James Mello
>
> Looking at the code for the ColumnFamilyRecordWriter and ColumnFamilyRecordReader, if the service throws a backpressure exception, the map/reduce framework will end up having to do retries to continue on the job. This failure scenario is pretty expensive and doesn't address transient load exceptions. If the hadoop integration can add retry logic internally for these scenarios, then the overall system would be greatly improved (IMO).
> A current idea on this would be to use a custom thread pool executor. Then the afterExecution method could be overridden to do retry if a specific type of retry class is provided in the job conf. I'll be trying to get a code example out soon as we need this internally, but if it proves to be a reasonable model, we'd like to try to help out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.