tomtongue commented on code in PR #9670:
URL: https://github.com/apache/iceberg/pull/9670#discussion_r1494655518
##########
spark/v3.5/spark-extensions/src/test/java/org/apache/iceberg/spark/extensions/TestDelete.java:
##########
@@ -1052,9 +1039,10 @@ public synchronized void
testDeleteWithSerializableIsolation() throws Interrupte
executorService.submit(
() -> {
for (int numOperations = 0; numOperations < Integer.MAX_VALUE;
numOperations++) {
- while (barrier.get() < numOperations * 2) {
- sleep(10);
- }
+ int currentNumOperations = numOperations;
+ Awaitility.await()
+ .pollInterval(Duration.ofMillis(10))
Review Comment:
Thanks for the suggestion. I think the default value of atMost with 10
seconds is applied to all the Awaitility parts. But, as your comment, I believe
it's better to explicitly specify the timeout to all of them. I will do it (if
it's no need, please let me know).
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]