aop
aop copied to clipboard
[BUG] potential ConcurrentModificationException when removeQueue
Describe the bug https://github.com/streamnative/aop/blob/06bf6573172c2c41fb0483215ce65ccea5b281a7/amqp-impl/src/main/java/io/streamnative/pulsar/handlers/amqp/impl/PersistentExchange.java#L287-L303
in removeQueue method, we remove value from a map when iterating it, which cause potential ConcurrentModificationException.
To Reproduce bind queue with Direct exchange, then remove the queue
Expected behavior queue removed successfully
Screenshots none
Additional context none