mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-02 22:31:22 +08:00
fix bug:在出异常的时候,会调一次reconnect,这里面释放旧连接,创建新连接;进入下一次循环的时候,又创建一次连接,所以在reconnect里面创建的那个新连接就泄露了
This commit is contained in:
parent
38b4dc8946
commit
5b975c55a7
@ -165,7 +165,6 @@ public class InsertTask implements Runnable {
|
||||
} catch (InterruptedException e) {
|
||||
LOG.info("thread interrupted ..., ignore");
|
||||
}
|
||||
connHolder.initConnection();
|
||||
conn = connHolder.getConn();
|
||||
LOG.info("retry {}, start do batch insert, size={}", i, buffer.size());
|
||||
checkMemstore();
|
||||
|
Loading…
Reference in New Issue
Block a user