HDFS-11363. Need more diagnosis info when seeing Slow waitForAckedSeqno.

This commit is contained in:
Xiao Chen 2017-02-02 10:08:27 -08:00
parent 3433f572fa
commit 0914fcca31

View File

@ -865,8 +865,9 @@ void waitForAckedSeqno(long seqno) throws IOException {
}
long duration = Time.monotonicNow() - begin;
if (duration > dfsclientSlowLogThresholdMs) {
LOG.warn("Slow waitForAckedSeqno took " + duration
+ "ms (threshold=" + dfsclientSlowLogThresholdMs + "ms)");
LOG.warn("Slow waitForAckedSeqno took {}ms (threshold={}ms). File being"
+ " written: {}, block: {}, Write pipeline datanodes: {}.",
duration, dfsclientSlowLogThresholdMs, src, block, nodes);
}
}
}