mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-03 19:21:10 +08:00
commit
c22db301b6
@ -65,6 +65,7 @@ public class InsertTask implements Runnable {
|
|||||||
this.writeRecordSql = writeRecordSql;
|
this.writeRecordSql = writeRecordSql;
|
||||||
this.isStop = false;
|
this.isStop = false;
|
||||||
this.deleteMeta = deleteMeta;
|
this.deleteMeta = deleteMeta;
|
||||||
|
connHolder.initConnection();
|
||||||
}
|
}
|
||||||
|
|
||||||
void setWriterTask(ConcurrentTableWriterTask writerTask) {
|
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) {
|
public void doMultiInsert(final List<Record> buffer, final boolean printCost, final long restrict) {
|
||||||
checkMemstore();
|
checkMemstore();
|
||||||
connHolder.initConnection();
|
|
||||||
Connection conn = connHolder.getConn();
|
Connection conn = connHolder.getConn();
|
||||||
boolean success = false;
|
boolean success = false;
|
||||||
long cost = 0;
|
long cost = 0;
|
||||||
@ -165,7 +165,6 @@ public class InsertTask implements Runnable {
|
|||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
LOG.info("thread interrupted ..., ignore");
|
LOG.info("thread interrupted ..., ignore");
|
||||||
}
|
}
|
||||||
connHolder.initConnection();
|
|
||||||
conn = connHolder.getConn();
|
conn = connHolder.getConn();
|
||||||
LOG.info("retry {}, start do batch insert, size={}", i, buffer.size());
|
LOG.info("retry {}, start do batch insert, size={}", i, buffer.size());
|
||||||
checkMemstore();
|
checkMemstore();
|
||||||
|
Loading…
Reference in New Issue
Block a user