oleg-vlsk commented on code in PR #12087: URL: https://github.com/apache/ignite/pull/12087#discussion_r2153562315
########## modules/indexing/src/test/java/org/apache/ignite/internal/processors/query/LongRunningQueryTest.java: ########## @@ -583,24 +704,55 @@ public void runDml(String dml) { assertTrue(lsnrDml.check()); } + /** + * @param loc Flag indicating if the query is local. + * @return Query id. + */ + public long runNotFullyFetchedQuery(boolean loc) { Review Comment: Done. ########## modules/indexing/src/test/java/org/apache/ignite/internal/processors/query/LongRunningQueryTest.java: ########## @@ -583,24 +704,55 @@ public void runDml(String dml) { assertTrue(lsnrDml.check()); } + /** + * @param loc Flag indicating if the query is local. + * @return Query id. + */ + public long runNotFullyFetchedQuery(boolean loc) { + queryCursor(loc).iterator().next(); + + checkQryInfoCount(loc ? 1 : gridCount()); + + H2QueryInfo qryInfo = (H2QueryInfo)heavyQueriesTracker().getQueries().iterator().next(); + + assertTrue(qryInfo.isSuspended()); + + return qryInfo.queryId(); + } + + /** + * @param loc Flag indicating if the query is local. + * @return Query cursor. + */ + public FieldsQueryCursor<List<?>> queryCursor(boolean loc) { Review Comment: Done. -- 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