Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.6.0
-
None
-
None
-
Reviewed
Description
BlockPoolManager#getAllNamenodeThreads can avoid unnecessary list to array conversion and vice versa by returning an unmodifiable list.
Since NN addition/removal is relatively rare we can just use a CopyOnWriteArrayList for concurrency.