sbernauer commented on pull request #1647:
URL: https://github.com/apache/hudi/pull/1647#issuecomment-641278957


   If i read https://stackoverflow.com/a/55753138 correctly, normally you 
register an gauge only at startup (or first metric write) and than just update 
the value in every loop. Currently Deltastreamer tries to register the gauge in 
every loop. 
(https://github.com/apache/hudi/blob/3387b3841f784fef2bb8548375b8c2078bc03506/hudi-utilities/src/main/java/org/apache/hudi/utilities/deltastreamer/HoodieDeltaStreamerMetrics.java#L70)
   It would be necessary to close the gauge at shutdown of the Deltastreamer, 
so if the Deltastreamer gets restarted the metric can be registered again.
   


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to