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

Gary Tully commented on ARTEMIS-2888:
-------------------------------------

I have settled on 'page-store-name' to allow a page store to be shared by a 
hierarchy of addresses. This is necessary to avoid inconsistency in resource 
usage calculations. A subscription can only deal with a single page store at 
the moment, and if there is more than one in play it will compete to page and 
update counters etc.. leading to problems.

<address-settings>
   <address-setting match="A.#">
      <page-store-name>A.shared</page-store-name>
   </address-setting>

If wildcard routing is in play, and addresses will page, then we need to 
explicitly indicate that page store that that hierarchy will use. Ie: this new 
address setting is mandatory in this situation.

some more detail in the PR 
https://github.com/apache/activemq-artemis/pull/3265/files

> MQTT spec violation when subscribed to wildcard topic
> -----------------------------------------------------
>
>                 Key: ARTEMIS-2888
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2888
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: MQTT
>    Affects Versions: 2.14.0
>         Environment: *Message Producer:*
> MQTTnet Client
> published Message to  
> 0e5ed50e-ccea-4a42-8c3e-db0e2780222b/from-smart-acquisition-device/machine-state/event/off
>  
> *Message Consumer:*
> MQTT Paho Java Client, also tested with HiveMQ Java Client.
> Subscribed to +/from-smart-acquisition-device/machine-state/event/off
>            Reporter: Florian Meister
>            Assignee: Gary Tully
>            Priority: Major
>         Attachments: image-2020-08-27-12-37-01-479.png
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Sometimes the topic name of published messages contains the topic filter 
> instead of the topic name.
> This is neither correct nor allowed in the MQTT 3.1.1 specification:
> [http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718106]
>  
> Below a screenshot of an example MQTT Packet sent from the Artemis Broker
> !image-2020-08-27-12-37-01-479.png!
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to