commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Rademacher (JIRA)" <j...@apache.org>
Subject [jira] Updated: (VFS-112) Deadlock when a FileMonitor fires an event and another thread deletes a file at the same time
Date Tue, 27 Feb 2007 08:48:05 GMT

     [ https://issues.apache.org/jira/browse/VFS-112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tim Rademacher updated VFS-112:
-------------------------------

    Attachment: AbstractFileSystem.diff

This fix should sove the deadlock problem!

> Deadlock when a FileMonitor fires an event and another thread deletes a file at the same
time
> ---------------------------------------------------------------------------------------------
>
>                 Key: VFS-112
>                 URL: https://issues.apache.org/jira/browse/VFS-112
>             Project: Commons VFS
>          Issue Type: Bug
>            Reporter: Tim Rademacher
>         Attachments: AbstractFileSystem.diff
>
>
> Hi!
> I experienced a deadlock when one thread (the DefaultFileMonitor) fires an event in which
a file is modified and another thread deletes a file at the same time.
> The first thread first locks the listenerMap to inform all listener and then tries to
lock the FileSystem fs to modify the file.
> The second thread first locks the FileSystem fs and then tries to inform all listener
by locking the listenerMap.
> I already made a fix, but I don't know, if this affects anything else. 
> Regards
> Tim

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message