### What changes were proposed in this pull request? Replace `putIfAbsent` with computeIfAbsent in ConcurrentHashMap ### Why are the changes needed? The invoking of `putIfAbsent` will always call its value if it's a time-consuming operation. So we'd better replace `putIfAbsent` with `computeIfAbsent` in some critical paths. ### Does this PR introduce _any_ user-facing change? No, it does not affect the user-facing API ### How was this patch tested? current UT Closes #1567 from cchung100m/CELEBORN-478. Lead-authored-by: cchung100m <cchung100m@cs.ccu.edu.tw> Co-authored-by: Cheng Pan <chengpan@apache.org> Co-authored-by: Neo Chien <cchung100m@cs.ccu.edu.tw> Signed-off-by: Cheng Pan <chengpan@apache.org> |
||
|---|---|---|
| .. | ||
| src | ||
| pom.xml | ||