Skip to content

[MINOR] fix update metric not be updated#9316

Merged
danny0405 merged 1 commit intoapache:masterfrom
KnightChess:minor-fix-update-metric
Jul 31, 2023
Merged

[MINOR] fix update metric not be updated#9316
danny0405 merged 1 commit intoapache:masterfrom
KnightChess:minor-fix-update-metric

Conversation

@KnightChess
Copy link
Contributor

Change Logs

will not update updateNumber metric when record not be update

Impact

low

In the following method, updateNumber is determined by tagLocation, will not compare update or not. After this pr, it's may be different in these two.
In the following method, it will save to infight file, which I found is used to rollback failed commit, but not use the updateNumber metric, and insertNumber metric is not used too, so I think the two metric in infight file is not work, maybe I missed any key information, let me know

void saveWorkloadProfileMetadataToInflight(WorkloadProfile profile, String instantTime)

Risk level (write none, low medium or high below)

low

Documentation Update

None

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

return false;
}
updatedRecordsWritten++;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A valid fix, probably the code is copied from a legacy error logic.

@danny0405 danny0405 merged commit f7c07ec into apache:master Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants