timoninmaxim commented on a change in pull request #8267:
URL: https://github.com/apache/ignite/pull/8267#discussion_r494960091



##########
File path: 
modules/ducktests/src/main/java/org/apache/ignite/internal/ducktest/tests/UuidStreamerApplication.java
##########
@@ -30,13 +30,20 @@
     @Override public void run(JsonNode jsonNode) {
         IgniteCache<UUID, UUID> cache = 
ignite.getOrCreateCache(jsonNode.get("cacheName").asText());
 
+        JsonNode jNodeSize = jsonNode.get("size");
+
+        long size = -1L;
+
         long cnt = 0L;
 
+        if (jNodeSize != null)
+            size = jNodeSize.asLong();

Review comment:
       long size = 
Optional.ofNullable(jNode.get("size")).map(JsonNode::asLong).orElse(-1L);




----------------------------------------------------------------
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:
[email protected]


Reply via email to