[
https://issues.apache.org/jira/browse/QPID-4153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Keith Wall resolved QPID-4153.
------------------------------
Resolution: Invalid
Just because the messages cause one selector to runtime error it does not
preclude the possibility that the message will match another consumer's
selector (or a consumer with no selector at all).
> Messages causing a runtime selector error should be dead-lettered (or
> something similar)
> ----------------------------------------------------------------------------------------
>
> Key: QPID-4153
> URL: https://issues.apache.org/jira/browse/QPID-4153
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Environment:
> Reporter: Keith Wall
> Assignee: Keith Wall
> Fix For: Future
>
>
> Test SelectorTest#testRuntimeSelectorError tries to test the case where the
> contents message header causes the evaluation a consumer's selector to fail
> with a RuntimeException (most likely due to a type issue). The test goes on
> to assert that the producer's session (or connection) is closed to single the
> error.
> There is a problem with the whole approach. It is not certain that the
> producer will still be present when this determination is made. The producer
> could have already gone away or the message might be being moved to a queue
> by a management operation etc.
> The broker should be changed to handle the scenario in a different manner,
> such as routing the message to an alternate exchange or dead-letter-queue.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]