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

Andrew Stitcher commented on QPID-5485:
---------------------------------------

Jakub, 
TBH honest I think that either we unlink the files immediately, in which case 
we can be pretty sure that whenever we start a new broker any page queue files 
that might exist correspond to an error that needs fixing, or we allow the 
create paged queue operation to truncate any previous file that might exist.

Any other behaviour isn't really robust enough in the face of brokers that 
crash and restart.

I agree that having hidden file usage is very admin unfriendly, but it is a 
fact of life on Unix (isn't it?).

There is perhaps another approach to the combination of this issue and 
QPID-5486: Put all the paged queue files in a subdirectory of the broker 
directory, that would avoid the need to check for an existing file as the only 
files that could overwritten would be a paged queue of the same name from a 
previous run, which would not be a problem. It would also allow you to call you 
paged queue lock or systemId etc.

>  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

Reply via email to