lokeshj1703 commented on code in PR #13307:
URL: https://github.com/apache/hudi/pull/13307#discussion_r2126049934
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/WriteStatus.java:
##########
@@ -181,6 +189,21 @@ private void updateStatsForFailure() {
totalErrorRecords++;
}
+ public WriteStatus removeMetadataIndexStatsAndErrorRecordsTracking() {
+ removeMetadataStats();
+ dropGranularErrorRecordsTracking();
+ return this;
+ }
+
+ public WriteStatus removeMetadataStats() {
+ this.writtenRecordDelegates.clear();
+ return this;
+ }
+
+ public void dropGranularErrorRecordsTracking() {
+ failedRecords.clear();
+ }
Review Comment:
Yes these are used currently in SparkRDDWriteClient
--
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]