prashantwason opened a new pull request #3084:
URL: https://github.com/apache/hudi/pull/3084
## What is the purpose of the pull request
Registry.add() API adds the new value to existing metric value. For some
use-cases We need a API to set/replace the existing value.
Metadata Table is synced in preWrite() and postWrite() functions of commit.
As part of the sync, the current sizes and basefile/logfile counts are
published as metrics. If we use the Registry.add() API, the count and sizes are
incorrectly published as sum of the two values. This is corrected by using the
Registry.set() API instead.
## Brief change log
New API introduced - Registry.set()
## Verify this pull request
This pull request is a trivial rework / code cleanup without any test
coverage.
## Committer checklist
- [ ] Has a corresponding JIRA in PR title & commit
- [ ] Commit message is descriptive of the change
- [ ] CI is green
- [ ] Necessary doc changes done or have another open PR
- [ ] For large changes, please consider breaking it into sub-tasks under
an umbrella JIRA.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]