Github user tdas commented on the pull request:
https://github.com/apache/spark/pull/8087#issuecomment-130091909
I think you can make a generic equivalent of scalatest `eventually` in
python. That takes care of failing with timeout and providing meaningful last
error message.
```
def eventually(timeout, condition, errorMessage)
# condition: function that must return boolean
# errorMessage: can be a string, or a function that returns a string, it
invoked if there is a timeout.
```
Then thats solves the problem I alluded to earlier about a possible race
condition.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]