Skip to content

Commit

Permalink
to #57132470 fix export rows CountStat
Browse files Browse the repository at this point in the history
  • Loading branch information
F-ca7 committed Jun 18, 2024
1 parent 1d02b48 commit 8513d6b
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 8513d6b

Please sign in to comment.