xtern commented on code in PR #7667:
URL: https://github.com/apache/ignite-3/pull/7667#discussion_r2853355965
##########
modules/sql-engine/src/test/java/org/apache/ignite/internal/sql/engine/exec/SqlOutdatedPlanTest.java:
##########
@@ -167,13 +178,22 @@ void schemaChangedAndNodeDisconnectedDuringPlanning() {
semaphore.release();
- await(await(fut).closeAsync());
+ AsyncSqlCursor<InternalSqlRow> cursor = await(fut);
// Planning must be repeated, but only once.
assertThat(prepareServiceSpy.callsCounter.get(), is(2));
// The plan execution must be repeated using a new transaction.
assertThat(txContext.startedTxCounter.get(), is(2));
+
+ drainAndCloseCursor(cursor);
+ }
+
+ private static void drainAndCloseCursor(AsyncSqlCursor<InternalSqlRow>
cursor) {
+ BatchedResult<InternalSqlRow> result =
await(cursor.requestNextAsync(1024));
+ assertThat(result.items(), is(not(empty())));
+ assertThat(result.hasMore(), is(false));
Review Comment:
changed to Integer.MAX_VALUE
--
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]