Skip to content

Commit 7a8c2e0

Browse files
YARN-11020. [UI2] No container is found for an application attempt with a single AM container. Contributed by Andras Gyori
1 parent d75f2db commit 7a8c2e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/serializers/yarn-jhs-container.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export default DS.JSONAPISerializer.extend({
4545
},
4646

4747
normalizeArrayResponse(store, primaryModelClass, payload/*, id, requestType*/) {
48-
49-
payload = payload["containerLogsInfo"]
48+
// Handling single container and multiple containers case at the same time
49+
payload = [].concat(payload["containerLogsInfo"]);
5050

5151
var normalizedArrayResponse = {
5252
data: []

0 commit comments

Comments
 (0)