Github user juliuszsompolski commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20555#discussion_r168048795
  
    --- Diff: core/src/main/java/org/apache/spark/io/ReadAheadInputStream.java 
---
    @@ -230,24 +227,32 @@ private void signalAsyncReadComplete() {
     
       private void waitForAsyncReadComplete() throws IOException {
         stateChangeLock.lock();
    +    isWaiting.set(true);
         try {
    -      while (readInProgress) {
    +      if (readInProgress) {
    --- End diff --
    
    Good catch, thanks!


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to