JingsongLi commented on code in PR #1072:
URL: https://github.com/apache/incubator-paimon/pull/1072#discussion_r1186965358
##########
paimon-core/src/main/java/org/apache/paimon/utils/ParallellyExecuteUtils.java:
##########
@@ -66,7 +67,7 @@ public T next() {
}
private void advanceIfNeeded() {
- if ((activeList == null || index >= activeList.size())
+ while ((activeList == null || index >=
activeList.size())
Review Comment:
Add a test for this?
##########
paimon-core/src/main/java/org/apache/paimon/utils/ParallellyExecuteUtils.java:
##########
@@ -66,7 +67,7 @@ public T next() {
}
private void advanceIfNeeded() {
- if ((activeList == null || index >= activeList.size())
+ while ((activeList == null || index >=
activeList.size())
Review Comment:
Add a unit test for this?
--
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]