mirror of
https://github.com/alibaba/DataX.git
synced 2026-06-30 21:01:32 +08:00
fix bug: 解决ob writer连接数随着写入不断上涨的问题
This commit is contained in:
parent
3225f02bf9
commit
38b4dc8946
@ -65,6 +65,7 @@ public class InsertTask implements Runnable {
|
||||
this.writeRecordSql = writeRecordSql;
|
||||
this.isStop = false;
|
||||
this.deleteMeta = deleteMeta;
|
||||
connHolder.initConnection();
|
||||
}
|
||||
|
||||
void setWriterTask(ConcurrentTableWriterTask writerTask) {
|
||||
@ -151,7 +152,6 @@ public class InsertTask implements Runnable {
|
||||
|
||||
public void doMultiInsert(final List<Record> buffer, final boolean printCost, final long restrict) {
|
||||
checkMemstore();
|
||||
connHolder.initConnection();
|
||||
Connection conn = connHolder.getConn();
|
||||
boolean success = false;
|
||||
long cost = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user