Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【workbunny/webman-rabbitmq】消费者超时导致重复消费 #11

Closed
Caesar-Tang-X opened this issue May 17, 2023 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@Caesar-Tang-X
Copy link

问题描述

首先感谢 workbunny 提供这么一款很好用的插件。使用【workbunny】RabbitMQ客户端,插件地址:https://www.workerman.net/plugin/67, 在消费者中如果有阻塞并超过一定时间,就会导致重复消费。

框架及插件版本

"workerman/webman-framework": "^1.5.0"
"workbunny/webman-rabbitmq": "^1.0"

复现代码

生产者:IndexController.php

image

workbunny rabbitmq配置:app.php
image

消费者:TestBuilder.php
image

关键日志打印

image

关键日志说明

通过日志可以看到,在出现错误前,是有消息消费成功并返回了 ACK。在出现错误后,相关进程重启,导致消息开始重新消费,以前返回的 ACK 似乎无效?RabbitMQ的控制台,始终显示有对应数量的信息处于 Unacked 状态。

image

@chaz6chez chaz6chez added the bug Something isn't working label Aug 24, 2023
chaz6chez added a commit that referenced this issue Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants