Crim commented on a change in pull request #3312:
URL: https://github.com/apache/storm/pull/3312#discussion_r469190189



##########
File path: storm-core/test/jvm/org/apache/storm/stats/TestStatsUtil.java
##########
@@ -92,6 +113,33 @@ public void makeTopoInfo() {
         worker2Resources.put(new WorkerSlot("node3", 3), ws3);
     }
 
+    private Map<String, Object> createBeatBoltStats() {
+        return createBeatStats("bolt");
+    }
+
+    private Map<String, Object> createBeatSpoutStats() {
+        return createBeatStats("spout");
+    }
+
+    private Map<String, Object> createBeatStats(final String type) {
+        Map<String, Object> stats = new HashMap<>();
+        stats.put("type", type);
+
+        stats.put("acked", new HashMap<>());

Review comment:
       Updated to only include the fields required for each component type.




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to