Closed cxzl25 closed 3 weeks ago
The method System.currentTimeMillis
might return the same value for two invokes. I think changing this UT is not the correct approach to fix this problem. Changing the definition of nonCriticalErrors to List will be better.
What changes were proposed in this pull request?
Why are the changes needed?
https://github.com/apache/celeborn/actions/runs/10441850633/job/28913478820?pr=2692
Because calling
System.currentTimeMillis()
twice may get the same value. Gauge uses the size of the set, and the same value will be deduplicated.https://github.com/apache/celeborn/blob/0ee3c3a4bdef3b97fca6be04f03ac36c2e12e1a6/worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/ObservedDevice.scala#L81-L91
Does this PR introduce any user-facing change?
No
How was this patch tested?
GA