Skip to content

Commit

Permalink
Merge pull request #27 from F-ca7/feature/v1_4_2
Browse files Browse the repository at this point in the history
V1.4.2 fix export rows CountStat
  • Loading branch information
F-ca7 authored Jun 18, 2024
2 parents a80cc0c + 8513d6b commit ff11da7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions batch-tool/src/main/java/worker/export/BaseExportWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import util.CountStat;
import util.DataSourceUtil;
import util.FileUtil;
import util.IOUtil;
Expand Down Expand Up @@ -154,6 +155,7 @@ protected void produceData() {
logger.error("{} 导出发生错误: {}", topology, e.getMessage());
} finally {
IOUtil.close(os);
CountStat.addDbRowCount(rowCount);
logger.info("{} 导出行数:{}", topology, rowCount);
}
}
Expand Down

0 comments on commit ff11da7

Please sign in to comment.