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 a750766c202 YARN-11891. Yarn logs command hangs for running 
applications (#8057) Contributed by D M Murali Krishna Reddy.
a750766c202 is described below

commit a750766c202590edaa4e8c61bf71a036db6bd13f
Author: Murali Krishna <[email protected]>
AuthorDate: Mon Nov 10 09:43:04 2025 +0530

    YARN-11891. Yarn logs command hangs for running applications (#8057) 
Contributed by D M Murali Krishna Reddy.
    
    * YARN-11891. Yarn logs command hangs for running applications.
    
    Signed-off-by: Shilun Fan <[email protected]>
---
 .../src/main/java/org/apache/hadoop/yarn/client/cli/LogsCLI.java      | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/cli/LogsCLI.java
 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/cli/LogsCLI.java
index 163da6fdd0b..b0c94c8f89e 100644
--- 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/cli/LogsCLI.java
+++ 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/cli/LogsCLI.java
@@ -538,6 +538,9 @@ private List<Pair<ContainerLogFileInfo, String>> 
getContainerLogFiles(
           JSONArray array = new JSONArray();
           String entity = response.readEntity(String.class);
           JSONObject json = new JSONObject(entity);
+          if (json.has("containerLogsInfoes")) {
+            json = json.getJSONObject("containerLogsInfoes");
+          }
           if (!json.has("containerLogsInfo")) {
             return logFileInfos;
           }
@@ -1531,6 +1534,7 @@ public void filter(ClientRequestContext requestContext) 
throws IOException {
           }
           // check if a URL is reachable
           checkUrlConnectivity(uri);
+          return;
         } catch (Exception e) {
           leftRetries--;
           if (leftRetries <= 0) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to