Memory channel doesn't clear queues on close
See original GitHub issuequeue.empty()
doesn’t empty the queue - it returns a boolean stating whether the queue is empty. In order to clear a queue (without touching the internals), one has to pop from it until it’s empty.
It remains a question if clearing should take place at all and whether the queues should be channel-scoped or transport-scoped. There’s definitely a need to be able to clear the queues between tests.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Why do my RabbitMQ channels keep closing? - Stack Overflow
Another possible reason for Receiving a Channel Closed Exception is when Publishers and Consumers are accessing Channel/Queue with different ...
Read more >Memory leak when closing channels #264 - streadway/amqp
When the "in" channel is closed, it stops consuming from it by setting the channel to nil, but then attempts to drain the...
Read more >RabbitMQ Clear Queues: How to Delete Queues & Purge ...
This function deletes queues that haven't been used for 28 days. An auto-delete queue takes place when the last consumer cancels or the ......
Read more >13 Common RabbitMQ Mistakes and How to Avoid Them
Don't open and close connections or channels repeatedly. · Don't use too many connections or channels. · Don't share channels between threads.
Read more >How to Gracefully Close Channels - Go 101
In other words, we should only close a channel in a sender goroutine if the ... closed and the value buffer queue //...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@auvipy There is no fix because I don’t know what the expected behaviour is.
It is crucial to decide on the behaviour wanted before commencing implementation.
If you purge the queue using RabbitMQ, it is purged for all channels, right?