Replace Thread.sleep() usage in test code with Awaitility
Feature Request / Improvement
It would be great to re-visit all Thread.sleep() usages in the test code and see which can be converted to Awaitility
Query engine
None
Could you assgin it to me?
@zhaomin1423 do you still plan to work on this?
@zhaomin1423 do you still plan to work on this?
Sorry for the late reply, I am busy recently, I am willing to do it, if this affects the progress, you can reassign it.
Can you assign this task to me?
@clownxc are you still working on this ?
Hi, @clownxc, any update with this? Hi, @nastra, i want to have to try if no one works on this now.
Hi, @clownxc, any update with this? Hi, @nastra, i want to have to try if no one works on this now.
Sorry, I'm sorry. I was too busy a while ago and I'm still happy to do it. I can finish it by this week. Sorry again @coded9 @nastra
Let me know if you need a hand @clownxc
Let me know if you need a hand @clownxc
Sorry, I was on a business trip recently, sorry again for not being able to complete this task on time, you can reassign this task to other interested people @coded9 @liuxiaocs7 @nastra
I will pick it up then, @nastra could you assign to me ?
@coded9 have you solved the issue , I am new to this i want to contribute to this
@nastra I just wanted to understand the benefits of Awaitility in place of sleep
@nastra I just wanted to understand the benefits of Awaitility in place of sleep
With a fixed sleep in tests you might wait too long or too short for a condition to happen, which results in either long or flaky tests. With awaitility you can fluently add retry behavior to make tests shorter and more robust.
shall i start working on this if it is not worked or picked up
@gzagarwal you might want to talk to @coded9 as he also wanted to work on this, although I don't know the current state of this
okay let me find something else.
@nastra I tried to implement the above method.
@nastra please consider the pr #8725
I've opened https://github.com/apache/iceberg/pull/8853 and https://github.com/apache/iceberg/pull/8852 to give an idea about places that are good candidates to replace with Awaitility. I believe there are more similar places in the codebase that can be fixed as part of #7154
I think a few other places that would be good to address are all places that use https://github.com/apache/iceberg/blob/main/spark/v3.5/spark-extensions/src/test/java/org/apache/iceberg/spark/extensions/SparkRowLevelOperationsTestBase.java#L331
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.
This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'