gong commented on PR #6913:
URL: https://github.com/apache/inlong/pull/6913#issuecomment-1354272056
```java
if (executionOptions.getBatchSize() > 0
&& batchCount >= executionOptions.getBatchSize()) {
flush();
if (sinkMetricData != null) {
sinkMetricData.invoke(rowSize, dataSize);
}
resetStateAfterFlush();
}
} catch (Exception e) {
if (sinkMetricData != null) {
sinkMetricData.invokeDirty(rowSize, dataSize);
}
resetStateAfterFlush();
throw new IOException("Writing records to JDBC failed.", e);
}
```
It should not to throw exception when computing dirty data metric. And we
can add judgement by ignore dirty option. @yunqingmoswu review here
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]