HDFS-17626. Reduce lock contention at datanode startup (#7053). Contributed by Tao Li.

Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
Signed-off-by: He Xiaoqiao <hexiaoqiao@apache.org>
This commit is contained in:
litao 2024-09-29 10:58:13 +08:00 committed by GitHub
parent 3fda243419
commit a9b7913d56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -258,7 +258,7 @@ NamespaceInfo retrieveNamespaceInfo() throws IOException {
while (shouldRun()) { while (shouldRun()) {
try { try {
nsInfo = bpNamenode.versionRequest(); nsInfo = bpNamenode.versionRequest();
LOG.debug(this + " received versionRequest response: " + nsInfo); LOG.debug("{} received versionRequest response: {}", this, nsInfo);
break; break;
} catch(SocketTimeoutException e) { // namenode is busy } catch(SocketTimeoutException e) { // namenode is busy
LOG.warn("Problem connecting to server: " + nnAddr); LOG.warn("Problem connecting to server: " + nnAddr);