Description
Found this issue while reading the related code. In NetworkTopology.toString() method, there is no thread safety guarantee directly, it's called by add/remove, and inside add/remove, most of this.toString() calls are protected by rwlock, except a couple of error handling codes, one possible fix is that moving them into lock as well, due to not heavy operations, so no obvious downgration should be observed per my current knowledge.
Attachments
Attachments
Issue Links
- relates to
-
HADOOP-12173 NetworkTopology#add calls NetworkTopology#toString always
- Resolved