beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Work logged] (BEAM-5375) KafkaIO reader should handle runtime exceptions kafka client
Date Thu, 13 Sep 2018 20:54:00 GMT

     [ https://issues.apache.org/jira/browse/BEAM-5375?focusedWorklogId=144070&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-144070
]

ASF GitHub Bot logged work on BEAM-5375:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Sep/18 20:53
            Start Date: 13/Sep/18 20:53
    Worklog Time Spent: 10m 
      Work Description: rangadi opened a new pull request #6391: [BEAM-5375] KafkaIO : Handle
runtime exceptions while fetching from Kafka better. 
URL: https://github.com/apache/beam/pull/6391
 
 
    Unrecoverable exceptions in Kafka fetch should result in IOException in the reader.
   
   KafkaConsumer.poll() could throw unrecoverable exceptions, KafkaIO didn't handle
   it well. The poll thread just silently died. It should result in an IOException
   thrown inside start()/advance() unbounded reader.
   
   Fix: The consumer poll thread saves the exception before exiting, and the reader checks
for it when before trying to serve more records. Added a unit test to verify.
   
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


Issue Time Tracking
-------------------

            Worklog Id:     (was: 144070)
            Time Spent: 10m
    Remaining Estimate: 0h

> KafkaIO reader should handle runtime exceptions kafka client
> ------------------------------------------------------------
>
>                 Key: BEAM-5375
>                 URL: https://issues.apache.org/jira/browse/BEAM-5375
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-kafka
>    Affects Versions: 2.7.0
>            Reporter: Raghu Angadi
>            Assignee: Raghu Angadi
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> KafkaIO reader might stop reading from Kafka without any explicit error message if KafkaConsumer
throws a runtime exception while polling for messages. One of the Dataflow customers encountered
this issue (see [user@ thread|[https://lists.apache.org/thread.html/c0cf8f45f567a0623592e2d8340f5288e3e774b59bca985aec410a81@%3Cuser.beam.apache.org%3E])]
> 'consumerPollThread()' in KafkaIO deliberately avoided catching runtime exceptions. It
shoud handle it.. stuff happens at runtime. 
> It should result in 'IOException' from start()/advance(). The runners will handle properly
reporting and closing the readers. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message