gpt4 book ai didi

Delete all the pending KubeMQ messages(删除所有挂起的KubeMQ消息)

转载 作者:bug小助手 更新时间:2023-10-25 11:28:14 26 4
gpt4 key购买 nike



I have an integration tests set up which use KubeMQ, and sometimes, when one of them fails to digest all the messages sent in it's test suite the messages can get to the next test and make them fail.

我有一个使用KubeMQ的集成测试,有时,当其中一个无法消化其测试套件中发送的所有消息时,消息可以到达下一个测试并使其失败。


I wan't to know if is there a way to force KubeMQ to drop all the stored messages without killing the KubeMQ connection. The application is in Go and if you have any github.com/kubemq-io/kubemq-go specific solution it would be even better(I was not able to find anything useful in the package).

我不知道是否有一种方法可以强制KubeMQ丢弃所有存储的消息而不终止KubeMQ连接。这个应用程序是在Go中的,如果你有任何特定的githorb.com/kubemq-io/kubemq-go解决方案,那就更好了(我在包中找不到任何有用的东西)。


更多回答
优秀答案推荐

You can use the AckAll command that will purge all the messages in the queue.

您可以使用AckAll命令清除队列中的所有消息。


更多回答

I guess you are talking about this docs.kubemq.io/kubemqctl/kubemqctl_queues/kubemqctl_queues_ack right? It should work, thanks!

我猜你说的是这个docs.kubemq.io/kubemqctl/kubemqctl_queues/kubemqctl_queues_ack,对吧?应该行得通,谢谢!

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com