You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/01/22 22:30:00 UTC

[jira] [Commented] (KAFKA-9465) Enclose consumer call with catching InvalidOffsetException

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

ASF GitHub Bot commented on KAFKA-9465:
---------------------------------------

tedyu commented on pull request #8001: KAFKA-9465: Enclose consumer call with catching InvalidOffsetException
URL: https://github.com/apache/kafka/pull/8001
 
 
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Enclose consumer call with catching InvalidOffsetException
> ----------------------------------------------------------
>
>                 Key: KAFKA-9465
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9465
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Ted Yu
>            Priority: Minor
>
> In maybeUpdateStandbyTasks, the try block encloses restoreConsumer.poll and record handling.
> Since InvalidOffsetException is thrown by restoreConsumer.poll, we should enclose this call in the try block.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)