You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Xinyu Liu (JIRA)" <ji...@apache.org> on 2018/05/02 16:55:00 UTC

[jira] [Updated] (SAMZA-1539) KafkaProducer potential hang on close() when task.drop.producer.errors==true

     [ https://issues.apache.org/jira/browse/SAMZA-1539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xinyu Liu updated SAMZA-1539:
-----------------------------
    Fix Version/s:     (was: 0.15.0)
                   0.14.1

> KafkaProducer potential hang on close() when task.drop.producer.errors==true
> ----------------------------------------------------------------------------
>
>                 Key: SAMZA-1539
>                 URL: https://issues.apache.org/jira/browse/SAMZA-1539
>             Project: Samza
>          Issue Type: Bug
>            Reporter: Jake Maes
>            Assignee: Jake Maes
>            Priority: Major
>             Fix For: 0.14.1
>
>
> The issue is caused by 2 bad behaviors:
> 1. KafkaProducer.close() does an unbounded thread.join() even when a force close (timeout == 0 ms) is specified. 
> 2. KafkaSystemProducer.handleSendException() has a synchronized block to recreate the producer when task.drop.producer.errors==true. When the IO thread is waiting on the synchronized block, it prevents the KafkaProducer from joining the IO thread.
> Fixing either one will fix the issue, but we will close this ticket as soon as the Samza side is tested and committed.



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