You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
背景
线上有一批消息,消息的属性为比如:
A-Bcd-Efg=abc
,消费者端的消费方式是通过如下api进行订阅的:而不是通过手动过滤即手动检查每一条消息的属性信息。
报错信息
Caused by: org.apache.rocketmq.client.exception.MQClientException: CODE: 23 DESC: org.apache.rocketmq.filter.parser.ParseException: Encountered " "-" "- "" at line 1, column 3.
Was expecting one of:
"NOT" ...
"AND" ...
"OR" ...
"BETWEEN" ...
"IN" ...
"IS" ...
"=" ...
"<>" ...
">" ...
">=" ...
"<" ...
"<=" ...
")" ...
疑问
既然rocketmq允许设置类似于
A-Bcd-Efg=abc
的属性,那么应该也能过滤,目前进行了多种方式进行尝试,均无法过滤出消息key中包含符号“-”的消息,不知道代码应该怎么写才能过来出来?Beta Was this translation helpful? Give feedback.
All reactions