danny0405 commented on code in PR #13699:
URL: https://github.com/apache/hudi/pull/13699#discussion_r2265587234


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/WriteStatus.java:
##########
@@ -103,12 +104,20 @@ public WriteStatus() {
    * @param optionalRecordMetadata optional metadata related to data contained 
in {@link HoodieRecord} before deflation.
    */
   public void markSuccess(HoodieRecord record, Option<Map<String, String>> 
optionalRecordMetadata) {
-    if (trackSuccessRecords) {
+    if (trackSuccessRecords && !manuallyTrackIndexUpdates) {
       
indexStats.addHoodieRecordDelegate(HoodieRecordDelegate.fromHoodieRecord(record));
     }
     updateStatsForSuccess(optionalRecordMetadata);
   }
 
+  public void manuallyTrackSuccess() {
+    this.manuallyTrackIndexUpdates = true;

Review Comment:
   Can just set up `trackSuccessRecords` as false 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]

Reply via email to