[ 
https://issues.apache.org/jira/browse/FLUME-1327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402807#comment-13402807
 ] 

Hudson commented on FLUME-1327:
-------------------------------

Integrated in flume-trunk #264 (See 
[https://builds.apache.org/job/flume-trunk/264/])
    FLUME-1327. File Channel can deadlock during checkpoint.

(Hari Shreedharan via Arvind Prabhakar) (Revision 1354800)

     Result = SUCCESS
arvind : http://svn.apache.org/viewvc/?view=rev&rev=1354800
Files : 
* 
/incubator/flume/trunk/flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/FileChannel.java
* 
/incubator/flume/trunk/flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/FileChannelConfiguration.java
* 
/incubator/flume/trunk/flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/Log.java

                
> 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
>            Assignee: Hari Shreedharan
>             Fix For: v1.2.0
>
>         Attachments: FLUME-1327-1.patch
>
>
> 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