rocketMQ 错误:The broker does not support consumer to filter message by SQL92

The SQL92 standard is used in the Rocket consumer code

consumer.subscribe("TopicTest", MessageSelector.bySql("a between 0 and 3"));

Daily MQClientException exception occurs The broker does not support consumer to filter message by SQL92

broker.confAt this time , add the following sentence to the broker configuration file of the server rocketMq :

# 让‘过滤消息’时支持SQL92标准
enablePropertyFilter=true

Restarting the namesrv and broker services will solve the problem, and it can also be seen in the console (it is false before adding):
insert image description here

Guess you like

Origin blog.csdn.net/JemeryShen/article/details/126639759