korlov42 commented on code in PR #4719: URL: https://github.com/apache/ignite-3/pull/4719#discussion_r1841875543
########## modules/core/src/main/java/org/apache/ignite/internal/util/subscription/IterableToPublisherAdapter.java: ########## @@ -162,7 +162,7 @@ private void drain() { notifyError(th); } - if (amount > 0) { + if (!it.hasNext() || amount == 0) { Review Comment: why do we need the second part of the condition (` || amount == 0`)? -- 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