@@ -264,6 +264,9 @@ Trunk (unreleased changes)
HADOOP-3937. Limit the job name in the job history filename to 50
characters. (Matei Zaharia via omalley)
+ HADOOP-3943. Remove unnecessary synchronization in
+ NetworkTopology.pseudoSortByDistance. (hairong via omalley)
+
OPTIMIZATIONS
HADOOP-3556. Removed lock contention in MD5Hash by changing the
@@ -616,7 +616,7 @@ public class NetworkTopology {
* location at postion 0.
* It leaves the rest nodes untouched.
*/
- public synchronized void pseudoSortByDistance( Node reader, Node[] nodes ) {
+ public void pseudoSortByDistance( Node reader, Node[] nodes ) {
int tempIndex = 0;
if (reader != null ) {
int localRackNode = -1;