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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to