HDFS-16339. Show the threshold when mover threads quota is exceeded (#3689)

Reviewed-by: Viraj Jasani <vjasani@apache.org>
Reviewed-by: Hui Fei <ferhui@apache.org>
(cherry picked from commit 86705eda82)
This commit is contained in:
litao 2021-11-26 18:52:14 +08:00 committed by Takanobu Asanuma
parent a13a03ec10
commit b428d534fb
1 changed files with 2 additions and 2 deletions

View File

@ -1092,7 +1092,7 @@ class DataXceiver extends Receiver implements Runnable {
if (!dataXceiverServer.balanceThrottler.acquire()) { // not able to start if (!dataXceiverServer.balanceThrottler.acquire()) { // not able to start
String msg = "Not able to copy block " + block.getBlockId() + " " + String msg = "Not able to copy block " + block.getBlockId() + " " +
"to " + peer.getRemoteAddressString() + " because threads " + "to " + peer.getRemoteAddressString() + " because threads " +
"quota is exceeded."; "quota=" + dataXceiverServer.balanceThrottler.getMaxConcurrentMovers() + " is exceeded.";
LOG.info(msg); LOG.info(msg);
sendResponse(ERROR, msg); sendResponse(ERROR, msg);
return; return;
@ -1166,7 +1166,7 @@ class DataXceiver extends Receiver implements Runnable {
if (!dataXceiverServer.balanceThrottler.acquire()) { // not able to start if (!dataXceiverServer.balanceThrottler.acquire()) { // not able to start
String msg = "Not able to receive block " + block.getBlockId() + String msg = "Not able to receive block " + block.getBlockId() +
" from " + peer.getRemoteAddressString() + " because threads " + " from " + peer.getRemoteAddressString() + " because threads " +
"quota is exceeded."; "quota=" + dataXceiverServer.balanceThrottler.getMaxConcurrentMovers() + " is exceeded.";
LOG.warn(msg); LOG.warn(msg);
sendResponse(ERROR, msg); sendResponse(ERROR, msg);
return; return;