prashantwason opened a new pull request #2152:
URL: https://github.com/apache/hudi/pull/2152
Using the added API, publish metrics after each level of the DAG completed
in hudi-test-suite.
## What is the purpose of the pull request
HUDI metrics are published at two stages:
1. When an action completed (e.g. HoodieMetrics.updateCommitMetrics)
2. When the JVM is shutdown (Metrics.java addShutdownHook)
hudi-test-suite includes multiple jobs each of which is an action on the
table. All these jobs are run in a single JVM. Hence, currently some metrics
are not published till the entire hudi-test-suite run is over.
Enhancements:
1. Allow metrics to be published after each job
2. Flush metrics so redundant metrics (from the last job) are not published
again.
## Brief change log
Added Metrics.flush()
## 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]