[ https://issues.apache.org/jira/browse/QPID-5485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13873869#comment-13873869 ]
Andrew Stitcher commented on QPID-5485: --------------------------------------- A safer way to make sure that the paging files are not left around in the face of things like processes being terminated roughly woudl be to unlink the file immediately after opening it. It is a feature of Unix like systems that files will hang around as long as any programs have them open irrespective of whether the file is linked into a directory or not. So the paging file would be perfectly fine existing on disk until it was either closed by deleting the queue or by the process exiting for whatever reason. > Deleting paged queue does not remove underlying file > ----------------------------------------------------- > > Key: QPID-5485 > URL: https://issues.apache.org/jira/browse/QPID-5485 > Project: Qpid > Issue Type: Bug > Components: C++ Broker > Affects Versions: 0.24 > Environment: (any posix system) > Reporter: Pavel Moravec > Assignee: Pavel Moravec > Priority: Minor > Labels: easyfix, easytest, patch > Fix For: 0.27 > > > Description of problem: > When deleting a paged queue, the broker does not delete the underlying file > it created in /var/lib/qpidd directory. > Version-Release number of selected component (if applicable): > MRG-M 3.0 EA (qpid-cpp 0.22-29) > How reproducible: > 100% > Steps to Reproduce: > 0. service qpiddd restart > 1. qpid-send -a "PagedQueue; {create:always, delete:always, node: { > x-declare: {arguments: {'qpid.paging':'True' }}}}" > 2. file /var/lib/qpidd/PagedQueue > Actual results: > /var/lib/qpidd/PagedQueue: data > Expected results: > /var/lib/qpidd/PagedQueue: cannot open `/var/lib/qpidd/PagedQueue' (No such > file or directory) > Additional info: -- This message was sent by Atlassian JIRA (v6.1.5#6160) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org