You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by andrea bisogno <bi...@hotmail.it> on 2024/04/08 07:47:38 UTC
Possibility to remove "expiry-address" setting its value to ""
Hi support,
referring to the discussion https://github.com/artemiscloud/activemq-artemis-operator/discussions/853, I would ask you if, in one of the next releases, it is possible to consider no expiry address<https://activemq.apache.org/components/artemis/documentation/latest/message-expiry.html#configuring-expiry-addresses> is configured in case its value is equal to "" (empty string).
In practice, to have the possibility to reach the goal "if messages are expired and no expiry address is specified, messages are simply removed from the queue and dropped", not only if no expiry address is specified, but also in the case it is set to "".
This would help a lot in the k8s context.
Many thanks in advance,
Andrea Bisogno
P.S.
For my better understanding, how does the expiry-address work in terms of resources? I mean, in case it is configured (e.g. in case it is left to the "ExpiryQueue" default value), when the enqueued expired messages are defintevely dropped? Is the "ExpiryQueue" default address managed as any other "standard" address in term of resources consumption etc?
R: Possibility to remove "expiry-address" setting its value to ""
Posted by andrea bisogno <bi...@hotmail.it>.
I've tested it now (setting the corresponding value on the Artemis CRD to ""), and it works.
The resulting broker.xml contains:
<address-setting match="#">
<expiry-address></expiry-address>
Many thanks
Andrea
________________________________
Da: Justin Bertram <jb...@apache.org>
Inviato: martedì 9 aprile 2024 20:45
A: users@activemq.apache.org <us...@activemq.apache.org>
Oggetto: Re: Possibility to remove "expiry-address" setting its value to ""
Have you actually tested this and confirmed it doesn't work? This
functionality should already work. See ARTEMIS-3090 [1] for more details.
Justin
[1] https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FARTEMIS-3090&data=05%7C02%7C%7C258ee8b0475d4f2cdaae08dc58d62555%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638482923973068784%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=a3XvnDEHko2XnovQViBe5lsiSyES4ZfLw%2BbXgWj3hbE%3D&reserved=0<https://issues.apache.org/jira/browse/ARTEMIS-3090>
On Mon, Apr 8, 2024 at 2:48 AM andrea bisogno <bi...@hotmail.it> wrote:
> Hi support,
> referring to the discussion
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fartemiscloud%2Factivemq-artemis-operator%2Fdiscussions%2F853&data=05%7C02%7C%7C258ee8b0475d4f2cdaae08dc58d62555%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638482923973078919%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=IHrVakwe8ugLY8tm5iDfXxjKMd%2FeSUhrwH%2FaJLKNBdk%3D&reserved=0<https://github.com/artemiscloud/activemq-artemis-operator/discussions/853>,
> I would ask you if, in one of the next releases, it is possible to consider
> no expiry address<
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Factivemq.apache.org%2Fcomponents%2Fartemis%2Fdocumentation%2Flatest%2Fmessage-expiry.html%23configuring-expiry-addresses&data=05%7C02%7C%7C258ee8b0475d4f2cdaae08dc58d62555%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638482923973086446%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=KYIHyOKwJZ7dujUq2x975pxe2ZAJD7J%2FrlXjeDsgdPs%3D&reserved=0><https://activemq.apache.org/components/artemis/documentation/latest/message-expiry.html#configuring-expiry-addresses>
> is configured in case its value is equal to "" (empty string).
> In practice, to have the possibility to reach the goal "if messages are
> expired and no expiry address is specified, messages are simply removed
> from the queue and dropped", not only if no expiry address is specified,
> but also in the case it is set to "".
> This would help a lot in the k8s context.
> Many thanks in advance,
>
> Andrea Bisogno
>
>
> P.S.
> For my better understanding, how does the expiry-address work in terms of
> resources? I mean, in case it is configured (e.g. in case it is left to the
> "ExpiryQueue" default value), when the enqueued expired messages are
> defintevely dropped? Is the "ExpiryQueue" default address managed as any
> other "standard" address in term of resources consumption etc?
>
Re: Possibility to remove "expiry-address" setting its value to ""
Posted by Justin Bertram <jb...@apache.org>.
Have you actually tested this and confirmed it doesn't work? This
functionality should already work. See ARTEMIS-3090 [1] for more details.
Justin
[1] https://issues.apache.org/jira/browse/ARTEMIS-3090
On Mon, Apr 8, 2024 at 2:48 AM andrea bisogno <bi...@hotmail.it> wrote:
> Hi support,
> referring to the discussion
> https://github.com/artemiscloud/activemq-artemis-operator/discussions/853,
> I would ask you if, in one of the next releases, it is possible to consider
> no expiry address<
> https://activemq.apache.org/components/artemis/documentation/latest/message-expiry.html#configuring-expiry-addresses>
> is configured in case its value is equal to "" (empty string).
> In practice, to have the possibility to reach the goal "if messages are
> expired and no expiry address is specified, messages are simply removed
> from the queue and dropped", not only if no expiry address is specified,
> but also in the case it is set to "".
> This would help a lot in the k8s context.
> Many thanks in advance,
>
> Andrea Bisogno
>
>
> P.S.
> For my better understanding, how does the expiry-address work in terms of
> resources? I mean, in case it is configured (e.g. in case it is left to the
> "ExpiryQueue" default value), when the enqueued expired messages are
> defintevely dropped? Is the "ExpiryQueue" default address managed as any
> other "standard" address in term of resources consumption etc?
>