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命令清除队列中的所有消息。
更多回答
我是一名优秀的程序员,十分优秀!