Hean-Chhinling commented on code in PR #8033:
URL: https://github.com/apache/hadoop/pull/8033#discussion_r2441924590


##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/helper/AppInfoJsonVerifications.java:
##########
@@ -88,8 +87,8 @@ public static void verify(JSONObject info, RMApp app) throws 
JSONException {
         "clusterUsagePerc doesn't match");
     assertEquals(1, info.getInt("runningContainers"),
         "numContainers doesn't match");
-    assertNotNull(info.get("preemptedResourceSecondsMap"),
-        "preemptedResourceSecondsMap should not be null");
+    assertTrue(info.isNull("preemptedResourceSecondsMap"),
+        "preemptedResourceSecondsMap should be null, cause it is empty");

Review Comment:
   hmm...I see. I hope this will not break anything else 



-- 
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]

Reply via email to