Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Rabbitmq无法清除队列中的所有消息_Rabbitmq_Mq - Fatal编程技术网

Rabbitmq无法清除队列中的所有消息

Rabbitmq无法清除队列中的所有消息,rabbitmq,mq,Rabbitmq,Mq,我正在使用rabbitmq,并尝试使用如下命令清除队列: [root@test xxx]# rabbitmqctl purge_queue metering.sample Purging queue 'metering.sample' in vhost '/' ... [root@test xxx]# rabbitmqadmin purge queue name=metering.sample queue purged [root@test xxx]# rabbitmqctl list_q

我正在使用rabbitmq,并尝试使用如下命令清除队列:

[root@test xxx]# rabbitmqctl purge_queue metering.sample
Purging queue 'metering.sample' in vhost '/' ...

[root@test xxx]# rabbitmqadmin purge queue 
name=metering.sample
queue purged

[root@test xxx]# rabbitmqctl list_queues | grep sample
metering.sample 17172
最初,队列中充满了296533条消息,在我运行了这两个命令之后,队列中仍然充满了17172条消息。(我确信已经没有发行商在运行了)

为什么会这样?这是一个bug还是我用错了?
需要帮助,请提前感谢。

请记住,这些命令不会清除未确认的消息


可能是在清除队列后,这些消息被快速添加到队列中?