hfutatzhanghb opened a new pull request, #6434:
URL: https://github.com/apache/hadoop/pull/6434

   ### Description of PR
   
   In method FSEditLogAsync#enqueueEdit , there exist the below codes:
   ```java
           if (Thread.holdsLock(this)) {
             // if queue is full, synchronized caller must immediately 
relinquish
             // the monitor before re-offering to avoid deadlock with sync 
thread
             // which needs the monitor to write transactions.
             int permits = overflowMutex.drainPermits();
             try {
               do {
                 this.wait(1000); // will be notified by next logSync.
               } while (!editPendingQ.offer(edit));
             } finally {
               overflowMutex.release(permits);
             }
           }  
   ```
   It maybe invoke this.wait(1000) without having object this's monitor.
   
    


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