????????????????????MySQL??????????Connection??????????
??????????????Connection A???????? T ??commit()????????????Connection
A??????A???? TwoPhaseCommitSinkFunction
????pendingCommitTransactions??????????????????????????Connection
B????????commit????T????????????????????????????????????????????
??????????????MySQL??????????2PC??????????????????????????????
????????????????????????????????
------------------ ???????? ------------------
??????:
"user-zh"
<[email protected]>;
????????: 2020??7??31??(??????) ????9:21
??????: "user-zh"<[email protected]>;
????: ????: Re: Flink????Kafka??Mysql?? End-To-End Exactly-Once????????????
??????????????????????????????????????????????????????
[email protected]
???????? ??????
?????????? 2020-01-03 15:18
???????? user-zh
?????? Re: Flink????Kafka??Mysql?? End-To-End Exactly-Once????????????
??????????????????????????????mysql-connector-java????????????????????????mysql-connector-java??????????????????????????????
> ?? 2020??1??3????????3:13??????2008 <[email protected]> ??????
>
> ??????1??????????????mysql-connector-java??latest????
> ??????????5.1.6??????????????????
> ????5.1.48????????
> <dependency&gt;
> &nbsp; &nbsp; <groupId&gt;mysql</groupId&gt;
> &nbsp; &nbsp;
<artifactId&gt;mysql-connector-java</artifactId&gt;
> &nbsp; &nbsp; <version&gt;5.1.48</version&gt;
> </dependency&gt;
>
>
>
>
>
> ------------------&nbsp;????????&nbsp;------------------
> ??????:&nbsp;"LakeShen"<[email protected]&gt;;
> ????????:&nbsp;2019??12??26??(??????) ????11:35
> ??????:&nbsp;"user-zh"<[email protected]&gt;;
>
> ????:&nbsp;Re: Flink????Kafka??Mysql?? End-To-End
Exactly-Once????????????
>
>
>
> ?????????????????????????? ??????????????
>
> Best wishes??
> ????
>
> ?????? <[email protected]&gt; ??2019??12??25?????? ????4:09??????
>
> &gt; ????????????
> &gt;
> &gt; ??????????Kafka??Mysql?? End-To-End
Exactly-Once??????????2????????
> &gt;
1??com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
> &gt; Communications link failure during commit(). Transaction
resolution unknown.
> &gt; 2??org.apache.flink.streaming.runtime.tasks.TimerException:
> &gt;
org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException:
> &gt; Could not forward element to next operator
> &gt;
> &gt; ??????????????????????????????demo????????
> &gt; git clone https://github.com/lusecond/flink_help --depth=1
> &gt;
> &gt;
> &gt;
????????????????????TwoPhaseCommitSinkFunction????4??????????beginTransaction??preCommit??commit??abort
> &gt;
????????????????????????????????????????????jdbc????????????????????????????????????????????????????????