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

Jark Wu updated FLINK-13253:
----------------------------
    Affects Version/s: 1.9.0

> Deadlock may occur in JDBCUpsertOutputFormat
> --------------------------------------------
>
>                 Key: FLINK-13253
>                 URL: https://issues.apache.org/jira/browse/FLINK-13253
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / JDBC
>    Affects Versions: 1.9.0
>            Reporter: Jingsong Lee
>            Assignee: Jingsong Lee
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In close, it await the flush scheduler terminal, but it hold the lock of 
> JDBCUpsertOutputFormat instance, maybe the async thread is waiting for this 
> lock in the flush method, so there might be a deadlock here.
> First, it should not await scheduler terminal, because it has flushed all 
> data to jdbc, what we should do is let async thread quit.
> Second, we should add lock outside the closed check in the flusher, in this 
> way, we can ensure async thread secure exiting.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to