zstan commented on code in PR #12749:
URL: https://github.com/apache/ignite/pull/12749#discussion_r2832954265
##########
modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/distributed/near/IgniteCacheQueryStopOnCancelOrTimeoutDistributedJoinSelfTest.java:
##########
@@ -104,18 +103,17 @@ private void testQueryCancel(Ignite ignite, String
cacheName, String sql, int ti
else {
cursor = cache.query(qry);
- ignite.scheduler().runLocal(new Runnable() {
- @Override public void run() {
- cursor.close();
- }
- }, timeoutUnits, timeUnit);
+ ignite.scheduler().runLocal(cursor::close, timeoutUnits, timeUnit);
}
try (QueryCursor<List<?>> ignored = cursor) {
- cursor.getAll();
+ int resSize = 0;
+ for (List<?> ignored1 : cursor) {
Review Comment:
fixed
##########
modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/distributed/near/IgniteCacheQueryAbstractDistributedJoinSelfTest.java:
##########
@@ -77,7 +74,7 @@ public class IgniteCacheQueryAbstractDistributedJoinSelfTest
extends AbstractInd
private static final int PERS_CNT = 600;
/** */
- private static final int PURCHASE_CNT = 6_000;
+ private static final int PURCHASE_CNT = 24_000;
Review Comment:
i change approach
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]