AlejandroMorgante commented on PR #60230:
URL: https://github.com/apache/spark/pull/60230#issuecomment-7045979844

   > LGTM but the description needs to be updated:
   > 
   > ```diff
   > --- a/PR description
   > +++ b/PR description
   > @@ Why are the changes needed?
   > -- **Classic**: the local wait loop treats `timeoutMs=0` as "already timed 
out", so it silently returns immediately without waiting at all -- no crash, 
but the caller's tiny wait is silently discarded.
   > +- **Classic**: `StreamExecution.awaitTermination` runs `require(timeoutMs 
> 0, "Timeout has to be positive")` before waiting on the latch, so `0` raises 
the same `IllegalArgumentException`. The loop that treats `0`ms as already 
timed out is `StreamingQueryManager.awaitAnyTermination`, which this PR leaves 
unchanged.
   > 
   > @@ Does this PR introduce any user-facing change?
   >  # Classic
   > -(returns immediately, without waiting at all)
   > +IllegalArgumentException: requirement failed: Timeout has to be positive
   > ```
   > 
   > I would also like someone more familiar with Streaming to take a look 
before merging this in, in case I am missing some subtle consequence of this 
change. Perhaps @HeartSaVioR or @HyukjinKwon could chime in?
   
   Updated! Thanks ❤️ 


-- 
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]

Reply via email to