You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by sn...@apache.org on 2021/12/09 12:03:33 UTC

[hadoop] branch branch-3.3 updated: YARN-11020. [UI2] No container is found for an application attempt with a single AM container. Contributed by Andras Gyori

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

snemeth pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.3 by this push:
     new 8053b0f  YARN-11020. [UI2] No container is found for an application attempt with a single AM container. Contributed by Andras Gyori
8053b0f is described below

commit 8053b0f2059c3ddfb80ece12c08d545a3a24eba6
Author: Szilard Nemeth <sn...@apache.org>
AuthorDate: Thu Dec 9 13:02:55 2021 +0100

    YARN-11020. [UI2] No container is found for an application attempt with a single AM container. Contributed by Andras Gyori
---
 .../src/main/webapp/app/serializers/yarn-jhs-container.js             | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/serializers/yarn-jhs-container.js b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/serializers/yarn-jhs-container.js
index 599cf7f..8aebb71 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/serializers/yarn-jhs-container.js
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/serializers/yarn-jhs-container.js
@@ -45,8 +45,8 @@ export default DS.JSONAPISerializer.extend({
   },
 
   normalizeArrayResponse(store, primaryModelClass, payload/*, id, requestType*/) {
-
-    payload = payload["containerLogsInfo"]
+    // Handling single container and multiple containers case at the same time
+    payload = [].concat(payload["containerLogsInfo"]);
 
     var normalizedArrayResponse = {
       data: []

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