slfan1989 commented on code in PR #7343:
URL: https://github.com/apache/hadoop/pull/7343#discussion_r1939403982
##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timelineservice/ApplicationEntity.java:
##########
@@ -43,7 +43,12 @@ public ApplicationEntity(TimelineEntity entity) {
}
public String getQueue() {
- return getInfo().get(QUEUE_INFO_KEY).toString();
+ if (getInfo() != null) {
Review Comment:
Thank you very much for your comment! I have further refined this part of
the code and added the `@JsonInclude(JsonInclude.Include.NON_EMPTY)` annotation
to ensure compatibility of this logic.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]