oleg-vlsk commented on code in PR #11349:
URL: https://github.com/apache/ignite/pull/11349#discussion_r1606320778


##########
modules/indexing/src/test/java/org/apache/ignite/cache/query/ThinClientIndexQueryTest.java:
##########
@@ -224,14 +227,25 @@ public void testPageSize() {
             for (int pageSize: F.asList(1, 10, 100, 1000, 10_000)) {
                 idxQry.setPageSize(pageSize);
 
-                
TestRecordingCommunicationSpi.spi(grid(0)).record(GridQueryNextPageRequest.class);
+                for (int i = 0; i < NODES; i++)
+                    
TestRecordingCommunicationSpi.spi(grid(i)).record(GridCacheQueryRequest.class);
 
                 assertClientQuery(cache, NULLS_CNT, CNT, idxQry);
 
-                List<Object> reqs = 
TestRecordingCommunicationSpi.spi(grid(0)).recordedMessages(true);
+                List<Object> reqs = new ArrayList<>();
+
+                for (int i = 0; i < NODES; i++) {
+                    
reqs.addAll(TestRecordingCommunicationSpi.spi(grid(i)).recordedMessages(true)
+                        .stream()
+                        .map(o -> (GridCacheQueryRequest)o)
+                        .filter(o -> o.type() == null)
+                        .collect(Collectors.toList()));
+                }
+
+                assert pageSize >= CNT || !reqs.isEmpty();

Review Comment:
   This is a shorter version of
   ```
   if (pageSize < CNT)
       assert !reqs.isEmpty();
   ```
   where we need to make sure that if the page size is less than the number of 
entries, then the collection of messages must not be empty.



-- 
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: notifications-unsubscr...@ignite.apache.org

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

Reply via email to