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:
parent
3fda243419
commit
a9b7913d56
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user