prashantwason commented on a change in pull request #2152:
URL: https://github.com/apache/hudi/pull/2152#discussion_r509908416
##########
File path:
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metrics/Metrics.java
##########
@@ -97,6 +110,14 @@ public static synchronized void shutdown() {
initialized = false;
}
+ public static synchronized void flush() {
+ if (!Metrics.initialized) {
+ return;
Review comment:
This is inline with the shutdown() and init() functions which are
fail-safe. Unless metrics are initialized there is no effect of calling these.
----------------------------------------------------------------
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]