This is an automated email from the ASF dual-hosted git repository.

slfan1989 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 4b9e1dcb3b8 YARN-11782. [Federation] Fix incorrect error messages and 
improve failure handling. (#7449)
4b9e1dcb3b8 is described below

commit 4b9e1dcb3b81419667971c6d7c906a5d25690bd4
Author: slfan1989 <55643692+slfan1...@users.noreply.github.com>
AuthorDate: Tue Mar 4 05:58:44 2025 +0800

    YARN-11782. [Federation] Fix incorrect error messages and improve failure 
handling. (#7449)
    
    Co-authored-by: Ayush Saxena <ayushsax...@apache.org>
    Co-authored-by: Chris Nauroth <cnaur...@apache.org>
    Co-authored-by: Hualong Zhang <hualon...@hotmail.com>
    Reviewed-by: Ayush Saxena <ayushsax...@apache.org>
    Reviewed-by: Chris Nauroth <cnaur...@apache.org>
    Reviewed-by: Hualong Zhang <hualon...@hotmail.com>
    Signed-off-by: Shilun Fan <slfan1...@apache.org>
---
 .../yarn/server/router/clientrm/FederationClientInterceptor.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/clientrm/FederationClientInterceptor.java
 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/clientrm/FederationClientInterceptor.java
index 84278b2f1c0..4f9cbd603b5 100644
--- 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/clientrm/FederationClientInterceptor.java
+++ 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/clientrm/FederationClientInterceptor.java
@@ -816,7 +816,7 @@ public GetClusterMetricsResponse getClusterMetrics(
       GetClusterMetricsRequest request) throws YarnException, IOException {
     if (request == null) {
       routerMetrics.incrGetClusterMetricsFailedRetrieved();
-      String msg = "Missing getApplications request.";
+      String msg = "Missing getClusterMetrics request.";
       RouterAuditLogger.logFailure(user.getShortUserName(), 
GET_CLUSTERMETRICS, UNKNOWN,
           TARGET_CLIENT_RM_SERVICE, msg);
       RouterServerUtil.logAndThrowException(msg, null);
@@ -1386,7 +1386,7 @@ public GetLabelsToNodesResponse getLabelsToNodes(
       GetLabelsToNodesRequest request) throws YarnException, IOException {
     if (request == null) {
       routerMetrics.incrLabelsToNodesFailedRetrieved();
-      String msg = "Missing getNodesToLabels request.";
+      String msg = "Missing getLabelsToNodes request.";
       RouterAuditLogger.logFailure(user.getShortUserName(), GET_LABELSTONODES, 
UNKNOWN,
           TARGET_CLIENT_RM_SERVICE, msg);
       RouterServerUtil.logAndThrowException(msg, null);


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to