Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
There is a chance to see this error when write data to hudi with flink, and slot number per TM is larger than 1.
java.lang.IllegalArgumentException: A metric named hudi_table1.lock.acquire.duration already exists
The cause is in constructor of HoodieLockMetrics, when different thread from different slot of a Flink TM new HoodieLockMetrics, timer of identical metricName may registered to
MetricRegistry multiple time, causing this error.
we can add synchronized statement in function 'createTimerForMetrics' to make the test and set action atomic to avoid adding a timer multiple times.
Attachments
Attachments
Issue Links
- relates to
-
HUDI-5280 Fix taskmanager concurrent registry
- Open
- links to