Sergio Scaramuzzi
Sergio Scaramuzzi

Reputation: 15

Grouping handler is not expiring message groups

I am using the "message groups" feature from ActiveMQ Artemis 2.38.0 in my application, and I am seeing that the number of groups I have continues to grow.

I have checked the configuration reference and also seen this post.

Based on this above information I'm under the impression that I can create a grouping-handler that will automatically expire my message groups after a set of time.

However, I am not seeing my group count decrease, and the listGroupsAsJSON operation is still showing me all the groups long after the given timeout period.

My broker.xml contains this nested in the core tag:

<grouping-handler name="grouping-handler">
   <type>LOCAL</type>
   <group-timeout>120000</group-timeout>
   <reaper-period>60000</reaper-period>
</grouping-handler>

What am I doing wrong here?

More details: It seems like group expiration gets problematic when I have multiple queues in a single address.

If I have test.address::test.address0 and test.address::test.address1 then no group will ever expire in these queues.

However, if I have the queues test.address::test.address and test.address::test.address1 then groups will ONLY expire for test.address::test.address.

Upvotes: 0

Views: 40

Answers (0)

Related Questions