This is an automated email from the ASF dual-hosted git repository.
snemeth 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 7a8c2e0 YARN-11020. [UI2] No container is found for an application
attempt with a single AM container. Contributed by Andras Gyori
7a8c2e0 is described below
commit 7a8c2e009761b8405406e185ab6302113be1f487
Author: Szilard Nemeth <[email protected]>
AuthorDate: Tue Dec 7 08:51:03 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]