The dataset lock is very highly contended. The unfair nature can be especially harmful to the heartbeat handling. Under high loads, partially expose by
HDFS-12136 introducing disk i/o within the lock, the heartbeat handling thread may process commands so slowly due to the contention that the node becomes stale or falsely declared dead. The unfair lock is not helping and appears to be causing frequent starvation under load.