单Pub单Sub 单Topic情况下的无法保障topic顺序消费
dddddkkkkk opened this issue · 1 comments
dddddkkkkk commented
Describe the bug
在使用jmete进行压测时发现。使用jmeter一个线程qos0(body中存在顺序递增seq),向一个topic中发送消息,Sub也是唯一订阅者消费。在观察sub端打印日志时发现,打印出的seq并不是顺序递增的,而是会出现乱序的情况。
*** SUB Client ***
- centos 7
- CPU: 4
- Memory: 4G
采用java 进行接收
<dependency>
<groupId>org.eclipse.paho</groupId>
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
<version>1.2.5</version>
</dependency>
- MQTT Connection:
- Clean Session: false
- ClientIdentifier:
- etc...
- MQTT Sub:
- TopicFilter: mqtt_test_local_1
- QoS: 0
** biformq 集群**
集群采用k8s部署,4核10g *3
JVM:
- Version: 17
BifroMQ
- Version: 2.1.0
- Non-Default Configuration:
- bifromq-start.sh -server -DMsgPubPerSec=100000 -DInBoundBandWidth=1073741824 -DOutBoundBandWidth=1073741824
- standalone.yml
#edit
mqttServerConfig:
tcpListener:
port: 1883
maxMsgByteSize: 1048576
maxConnBandwidth: 1073741824
maxConnPerSec: 5000
后序发现在windows搭建本地bifromq 单机版也能复现该问题。