[prev in list] [next in list] [prev in thread] [next in thread] 

List:       activemq-dev
Subject:    Re: Filtering by message ID doesn't 'work'
From:       Justin Bertram <jbertram () apache ! org>
Date:       2021-01-04 14:09:50
Message-ID: CAF+kE=RobX+iKK5JswQLR1tPtpT4__JNnYJh99cJM-FuJJnEgA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I'm not sure what you mean when you say, "I have also checked the same from
Wildlfy side and it's looking fine." What exactly looks "fine" and what
does "fine" mean?

At this point I don't see any reason to change the current behavior.
Everything is working as designed. To restate what was said on Stack
Overflow, the core messageID header is meant for internal use and is only
displayed for informational or debugging purposes.


Justin

On Mon, Jan 4, 2021 at 7:37 AM Ranabir Chakraborty <rchakrab@redhat.com>
wrote:

> Hello,
>
> We have an issue in Wildlfy[1] where messageID cannot be used in a filter
> via CLI. The messageID header property holds a java.lang.Long value,
> however, it is not possible to use filter operators on the messageID header
> property.
> For example, the following expression would not work besides messageID in
> each message was greater than '0'.
>
> [image: sample.png]
>
> [*standalone@localhost:9990 /]
> /subsystem=messaging-activemq/server=default/jms-queue=A:count-messages(filter="messageID>0")*
>
> Today I saw something in Stackoverflow[2] where an engineer explains that
> " Filters work on message properties and some selected attributes (e.g.
> AMQDurable, AMQPriority, etc.). See the documentation for more details on
> this. The message ID you're inspecting is not filterable. It's really
> meant for internal use and only displayed for informational or debugging
> purposes here."
>
> And I have also checked the same from Wildlfy side and it's looking fine.
> I think it will require some changes in the Artemis /AMQ side. Can you
> please take a look at this one?
>
> [1] https://issues.redhat.com/browse/WFLY-14241
> [2]
> https://stackoverflow.com/questions/65490584/how-to-browse-message-by-id
>
> Thanks,
> *Ranabir Chakraborty*
>
> Associate Software Engineer (JBoss SET) | Middleware Team
>
> Mob: +91-9733833958
>
> <https://red.ht/sig>   TRIED. TESTED. TRUSTED.
> <https://redhat.com/trusted>
>

[Attachment #5 (text/html)]

<div dir="ltr"><div>I&#39;m not sure what you mean when you say, &quot;<font \
face="arial, sans-serif"><font color="#000000">I have also checked the same from \
Wildlfy side and it&#39;s looking fine.&quot; What exactly looks &quot;fine&quot; and \
what does &quot;fine&quot; mean?</font></font></div><div><font face="arial, \
sans-serif"><font color="#000000"><br></font></font></div><div><font face="arial, \
sans-serif"><font color="#000000">At this point I don&#39;t see any reason to change \
the current behavior. Everything is working as designed. To restate what was said on \
Stack Overflow, the core messageID header is meant for internal use and is only \
displayed for informational or debugging purposes.<br></font></font></div><div><font \
face="arial, sans-serif"><font color="#000000"><br></font></font></div><div><font \
face="arial, sans-serif"><font color="#000000"><br></font></font></div><div><font \
face="arial, sans-serif"><font \
color="#000000">Justin<br></font></font></div></div><br><div class="gmail_quote"><div \
dir="ltr" class="gmail_attr">On Mon, Jan 4, 2021 at 7:37 AM Ranabir Chakraborty \
&lt;<a href="mailto:rchakrab@redhat.com">rchakrab@redhat.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div \
dir="ltr">Hello,<div><br>We have an issue in Wildlfy[1] where messageID cannot be \
used in a filter via CLI. The messageID header property holds a java.lang.Long value, \
however, it is not possible to use filter operators on the messageID header \
property.<br>For example, the following expression would not work besides messageID \
in each message was greater than &#39;0&#39;.</div><div><br></div><div><img \
src="cid:ii_kjii6dcx0" alt="sample.png" width="562" \
height="358"><br><div><br></div><div>[<b>standalone@localhost:9990 /] \
/subsystem=messaging-activemq/server=default/jms-queue=A:count-messages(filter=&quot;messageID&gt;0&quot;)</b><br><div><br></div><div>Today \
I saw something in Stackoverflow[2] where an engineer explains that &quot;  <span \
style="background-color:rgb(244,245,247);color:rgb(23,43,77);font-size:12px;white-space:pre-wrap">Filters \
work on message properties and some selected attributes (e.g. AMQDurable, \
AMQPriority, etc.). See the documentation </span><span \
style="font-size:12px;white-space:pre-wrap;color:rgb(145,0,145)">for</span><span \
style="background-color:rgb(244,245,247);color:rgb(23,43,77);font-size:12px;white-space:pre-wrap"> \
more details on </span><span \
style="font-size:12px;white-space:pre-wrap;color:rgb(145,0,145)">this</span><span \
style="background-color:rgb(244,245,247);color:rgb(23,43,77);font-size:12px;white-space:pre-wrap">. \
The message ID you</span><span \
style="font-size:12px;white-space:pre-wrap;color:rgb(0,145,0)">&#39;re inspecting is \
not filterable. It&#39;</span><span \
style="background-color:rgb(244,245,247);color:rgb(23,43,77);font-size:12px;white-space:pre-wrap">s \
really meant </span><span \
style="font-size:12px;white-space:pre-wrap;color:rgb(145,0,145)">for</span><span \
style="background-color:rgb(244,245,247);color:rgb(23,43,77);font-size:12px;white-space:pre-wrap"> \
internal use and only displayed </span><span \
style="font-size:12px;white-space:pre-wrap;color:rgb(145,0,145)">for</span><span \
style="background-color:rgb(244,245,247);color:rgb(23,43,77);font-size:12px;white-space:pre-wrap"> \
informational or debugging purposes here.&quot;</span></div><div><font \
color="#172b4d"><span \
style="font-size:12px;white-space:pre-wrap"><br></span></font></div><div><div><div \
dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><div dir="ltr"><div><div><div><font face="arial, sans-serif"><font \
color="#000000">And I have also checked the same from Wildlfy side and it&#39;s \
looking fine. I think it will require some changes in the Artemis /AMQ side. Can you \
please take a look at this one?</font></font><font face="arial, \
sans-serif"><br></font><br></div><div>[1]  <a \
href="https://issues.redhat.com/browse/WFLY-14241" \
target="_blank">https://issues.redhat.com/browse/WFLY-14241</a></div><div>[2]  <a \
href="https://stackoverflow.com/questions/65490584/how-to-browse-message-by-id" \
target="_blank">https://stackoverflow.com/questions/65490584/how-to-browse-message-by-id</a></div><div><br></div><div \
style="color:rgb(136,136,136)"><font face="arial, sans-serif" color="#000000"><span \
style="font-size:14px;text-transform:capitalize">Thanks,</span></font></div><div \
dir="ltr"><font face="RedHatText, sans-serif" color="#000000"><span \
style="font-size:14px;text-transform:capitalize"><b><i>Ranabir \
Chakraborty</i></b></span></font><br><p \
style="font-size:12px;margin:0px;text-transform:capitalize"><font face="arial, \
sans-serif" color="#666666">Associate Software Engineer (JBoss SET) | Middleware \
Team</font></p><p style="margin:0px 0px 4px;font-size:12px"><font face="arial, \
sans-serif" color="#666666">Mob: +91-9733833958</font></p><p \
style="font-family:RedHatText,sans-serif;margin:0px 0px 4px;font-size:12px"><a \
href="https://red.ht/sig" style="color:rgb(17,85,204)" target="_blank"><img \
src="https://www.redhat.com/profiles/rh/themes/redhatdotcom/img/logo-red-hat-black.png" \
width="90" height="auto"></a>     <a href="https://redhat.com/trusted" \
style="color:rgb(204,0,0);font-weight:bold" target="_blank">TRIED. TESTED. \
TRUSTED.</a><br></p></div></div><div dir="ltr" \
style="color:rgb(136,136,136)"></div><table style="color:rgb(136,136,136)" \
border="0"><tbody><tr></tr></tbody></table></div><div \
dir="ltr"></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
 </blockquote></div>

--000000000000406a0a05b813a676--



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic