Hari Shreedharan created FLUME-1327:
---------------------------------------

             Summary: File Channel can deadlock in when checkpoint happens in 
between a put/take/commit
                 Key: FLUME-1327
                 URL: https://issues.apache.org/jira/browse/FLUME-1327
             Project: Flume
          Issue Type: Bug
          Components: Channel
    Affects Versions: v1.2.0
            Reporter: Hari Shreedharan
             Fix For: v1.2.0


In the following case, the FileChannel deadlocks:
* put() grabs the read lock.
* In another thread, the writeCheckpoint method is called, which is 
synchronized, but this method gets blocked on writelock.lock() call.
* put() method calls roll, which is also synchronized, ends up getting blocked 
on the monitor for the Log object.
* The lock is never acquired since the thread holding the lock is blocked on 
the monitor.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to