ygerzhedovich commented on code in PR #4662:
URL: https://github.com/apache/ignite-3/pull/4662#discussion_r1828965057


##########
modules/sql-engine/src/test/java/org/apache/ignite/internal/sql/engine/exec/rel/AsyncRootNodeTest.java:
##########
@@ -78,8 +93,115 @@ void ensurePrefetchFutureIsNotCompletedByRequestedOfBatch() 
throws InterruptedEx
         assertFalse(prefetchFuture.isDone());
     }
 
+    /**
+     * Test to make sure root node won't return false-positive result in 
{@link BatchedResult#hasMore()}.
+     *
+     * <p>Such problem may arise when incoming request drains the internal 
buffer of the node empty, while source node has no more data
+     * left yet {@link Downstream#end()} has not been called.
+     *
+     * <p>Test below is a simplified reproducer: data source has exactly the 
same number of rows that the size of the buffer.
+     *
+     * <p>Another scenario may involve one exchange: one remote should fulfill 
the demand with all the rows it has, while another remote
+     * doesn't have data at all, but batch message from that remote is delayed.
+     */
+    @Test
+    void ensureNodeWontReturnFalsePositiveHasMoreFlag() {

Review Comment:
   I've created a ticket https://issues.apache.org/jira/browse/IGNITE-23605



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