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

James Birdsall commented on QPID-2169:
--------------------------------------

Confirmed, I can delete persisted exchanges and queues now.

> Cannot delete durable exchanges or queues with SQL persistence provider loaded
> ------------------------------------------------------------------------------
>
>                 Key: QPID-2169
>                 URL: https://issues.apache.org/jira/browse/QPID-2169
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>    Affects Versions: 0.6
>         Environment: Windows Server 2008
>            Reporter: James Birdsall
>            Assignee: Steve Huston
>             Fix For: 0.6
>
>
> After declaring a durable exchange or queue with the SQL persistence provider 
> loaded, and then cycling the broker, attempting to delete the exchange or 
> queue results in a 501 reply, "operation is not allowed in this context", and 
> the broker closes the connection.
> This is a trace where the client program does a passive exchangeDeclare to 
> determine whether exchange "E1" exists, then tries to exchangeDelete it. Each 
> operation is done in a separate session.
> 2009-10-27 20:56:31 notice Broker running
> 2009-10-27 20:56:44 debug RECV [127.0.0.1:52120] INIT(0-10)
> 2009-10-27 20:56:44 trace SEND Immediate ContentInd 
> to=console.obj.1.0.org.apache.qpid.broker.connection
> 2009-10-27 20:56:44 trace SENT 127.0.0.1:52120 INIT(0-10)
> 2009-10-27 20:56:44 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=0; 
> {ConnectionStartBody: 
> server-properties={qpid.federation_tag:V2:36:str16(9f3a2960-0efc-44be-ab38-59f6a673427b)};
>  mechanisms=str16{V2:9:str16(ANONYMOUS)}; locales=str16{V2:5:str16(en_US)}; }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=0; 
> {ConnectionStartOkBody: 
> client-properties={qpid.client_pid:F4:int32(5032),qpid.client_ppid:F4:int32(0),qpid.client_process:V2:0:str16(),qpid.session_flow:F4:int32(1)};
>  mechanism=ANONYMOUS; response=xxxxxx; locale=en_US; }]
> 2009-10-27 20:56:44 warning SASL: No Authentication Performed
> 2009-10-27 20:56:44 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=0; 
> {ConnectionTuneBody: channel-max=32767; max-frame-size=65535; 
> heartbeat-min=0; heartbeat-max=0; }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=0; 
> {ConnectionTuneOkBody: channel-max=32767; max-frame-size=65535; heartbeat=0; 
> }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=0; 
> {ConnectionOpenBody: virtual-host=; capabilities=void{}; insist=1; }]
> 2009-10-27 20:56:44 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=0; 
> {ConnectionOpenOkBody: 
> known-hosts=str16{V2:26:str16(amqp:tcp:157.56.26.94:5672)}; }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=1; 
> {SessionAttachBody: name=amq.failovere5bcc2e4-5c00-43b1-b668-e1461640e74e; }]
> 2009-10-27 20:56:44 debug SessionState::SessionState 
> anonymous.amq.failovere5bcc2e4-5c00-43b1-b668-e1461640e74e: 00D5EFA8
> 2009-10-27 20:56:44 debug 
> anonymous.amq.failovere5bcc2e4-5c00-43b1-b668-e1461640e74e: attached on 
> broker.
> 2009-10-27 20:56:44 debug Attached channel 1 to 
> anonymous.amq.failovere5bcc2e4-5c00-43b1-b668-e1461640e74e
> 2009-10-27 20:56:44 debug 
> anonymous.amq.failovere5bcc2e4-5c00-43b1-b668-e1461640e74e: ready to send, 
> activating output.
> 2009-10-27 20:56:44 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=1; 
> {SessionAttachedBody: name=amq.failovere5bcc2e4-5c00-43b1-b668-e1461640e74e; 
> }]
> 2009-10-27 20:56:44 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=1; 
> {SessionCommandPointBody: command-id=0; command-offset=0; }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=1; 
> {SessionRequestTimeoutBody: timeout=0; }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=1; 
> {SessionCommandPointBody: command-id=0; command-offset=0; }]
> 2009-10-27 20:56:44 debug 
> anonymous.amq.failovere5bcc2e4-5c00-43b1-b668-e1461640e74e: receiver 
> command-point set to: (0+0)
> 2009-10-27 20:56:44 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=1; 
> {SessionTimeoutBody: timeout=0; }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=1; 
> {ExchangeQueryBody: name=amq.failover; }]
> 2009-10-27 20:56:44 trace 
> anonymous.amq.failovere5bcc2e4-5c00-43b1-b668-e1461640e74e: recv cmd 0: 
> {ExchangeQueryBody: name=amq.failover; }
> 2009-10-27 20:56:44 debug Exception constructed: Exchange not found: 
> amq.failover (..\..\src\qpid\broker\ExchangeRegistry.cpp:90)
> 2009-10-27 20:56:44 debug 
> anonymous.amq.failovere5bcc2e4-5c00-43b1-b668-e1461640e74e: receiver marked 
> completed: 0 incomplete: { } unknown-completed: { [0,0] }
> \x00\x00\x00\x00\x00\x04\x00\x00\x00\x00; 
> }lovere5bcc2e4-5c00-43b1-b668-e1461640e74e: sent cmd 0: {ExecutionResultBody: 
> command-id=0; value=\x07\x01
> \x00\x00\x00\x00\x00\x04\x00\x00\x00\x00; }]120]: Frame[BEbe; channel=1; 
> {ExecutionResultBody: command-id=0; value=\x07\x01
> 2009-10-27 20:56:44 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=1; 
> {SessionCompletedBody: commands={ [0,0] }; }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=1; 
> {SessionDetachBody: name=amq.failovere5bcc2e4-5c00-43b1-b668-e1461640e74e; }]
> 2009-10-27 20:56:44 debug 
> anonymous.amq.failovere5bcc2e4-5c00-43b1-b668-e1461640e74e: detached on 
> broker.
> 2009-10-27 20:56:44 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=1; 
> {SessionDetachedBody: name=amq.failovere5bcc2e4-5c00-43b1-b668-e1461640e74e; 
> code=0; }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=2; 
> {SessionAttachBody: name=fbc3e964-770a-4582-9e7d-43e8ba55b121; }]
> 2009-10-27 20:56:44 debug SessionState::SessionState 
> anonymous.fbc3e964-770a-4582-9e7d-43e8ba55b121: 00D5EFA8
> 2009-10-27 20:56:44 debug anonymous.fbc3e964-770a-4582-9e7d-43e8ba55b121: 
> attached on broker.
> 2009-10-27 20:56:44 debug Attached channel 2 to 
> anonymous.fbc3e964-770a-4582-9e7d-43e8ba55b121
> 2009-10-27 20:56:44 debug anonymous.fbc3e964-770a-4582-9e7d-43e8ba55b121: 
> ready to send, activating output.
> 2009-10-27 20:56:44 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=2; 
> {SessionAttachedBody: name=fbc3e964-770a-4582-9e7d-43e8ba55b121; }]
> 2009-10-27 20:56:44 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=2; 
> {SessionCommandPointBody: command-id=0; command-offset=0; }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=2; 
> {SessionRequestTimeoutBody: timeout=0; }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=2; 
> {SessionCommandPointBody: command-id=0; command-offset=0; }]
> 2009-10-27 20:56:44 debug anonymous.fbc3e964-770a-4582-9e7d-43e8ba55b121: 
> receiver command-point set to: (0+0)
> 2009-10-27 20:56:44 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=2; 
> {SessionTimeoutBody: timeout=0; }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=2; 
> {ExchangeDeclareBody: exchange=E1; type=direct; alternate-exchange=; 
> passive=1; arguments={}; }]
> 2009-10-27 20:56:44 trace anonymous.fbc3e964-770a-4582-9e7d-43e8ba55b121: 
> recv cmd 0: {ExchangeDeclareBody: exchange=E1; type=direct; 
> alternate-exchange=; passive=1; arguments={}; }
> 2009-10-27 20:56:44 debug anonymous.fbc3e964-770a-4582-9e7d-43e8ba55b121: 
> receiver marked completed: 0 incomplete: { } unknown-completed: { [0,0] }
> 2009-10-27 20:56:44 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=2; 
> {SessionCompletedBody: commands={ [0,0] }; }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=2; 
> {SessionDetachBody: name=fbc3e964-770a-4582-9e7d-43e8ba55b121; }]
> 2009-10-27 20:56:44 debug anonymous.fbc3e964-770a-4582-9e7d-43e8ba55b121: 
> detached on broker.
> 2009-10-27 20:56:44 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=2; 
> {SessionDetachedBody: name=fbc3e964-770a-4582-9e7d-43e8ba55b121; code=0; }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=3; 
> {SessionAttachBody: name=575c998c-42b5-4c81-a3ea-8e9373bd43b7; }]
> 2009-10-27 20:56:44 debug SessionState::SessionState 
> anonymous.575c998c-42b5-4c81-a3ea-8e9373bd43b7: 00D5EFA8
> 2009-10-27 20:56:44 debug anonymous.575c998c-42b5-4c81-a3ea-8e9373bd43b7: 
> attached on broker.
> 2009-10-27 20:56:44 debug Attached channel 3 to 
> anonymous.575c998c-42b5-4c81-a3ea-8e9373bd43b7
> 2009-10-27 20:56:44 debug anonymous.575c998c-42b5-4c81-a3ea-8e9373bd43b7: 
> ready to send, activating output.
> 2009-10-27 20:56:44 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=3; 
> {SessionAttachedBody: name=575c998c-42b5-4c81-a3ea-8e9373bd43b7; }]
> 2009-10-27 20:56:44 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=3; 
> {SessionCommandPointBody: command-id=0; command-offset=0; }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=3; 
> {SessionRequestTimeoutBody: timeout=0; }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=3; 
> {SessionCommandPointBody: command-id=0; command-offset=0; }]
> 2009-10-27 20:56:44 debug anonymous.575c998c-42b5-4c81-a3ea-8e9373bd43b7: 
> receiver command-point set to: (0+0)
> 2009-10-27 20:56:44 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=3; 
> {SessionTimeoutBody: timeout=0; }]
> 2009-10-27 20:56:44 trace RECV [127.0.0.1:52120]: Frame[BEbe; channel=3; 
> {ExchangeDeleteBody: exchange=E1; }]
> 2009-10-27 20:56:44 trace anonymous.575c998c-42b5-4c81-a3ea-8e9373bd43b7: 
> recv cmd 0: {ExchangeDeleteBody: exchange=E1; }
> 2009-10-27 20:56:45 debug Exception constructed: Error deleting exchange E1: 
> Operation is not allowed in this context.
> 2009-10-27 20:56:45 error Unexpected exception: Error deleting exchange E1: 
> Operation is not allowed in this context.
> 2009-10-27 20:56:45 error Connection 127.0.0.1:52120 closed by error: Error 
> deleting exchange E1: Operation is not allowed in this context.(501)
> 2009-10-27 20:56:45 trace SENT [127.0.0.1:52120]: Frame[BEbe; channel=0; 
> {ConnectionCloseBody: reply-code=501; reply-text=Error deleting exchange E1: 
> Operation is not allowed in this context.; }]
> 2009-10-27 20:56:45 debug DISCONNECTED [127.0.0.1:52120]

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


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to