[fix][broker] Use poll instead remove to avoid NoSuchElementException
#26017
This job was skipped
Loading
poll instead remove to avoid NoSuchElementException
#26017