[fix][broker] Use poll instead remove to avoid NoSuchElementException
#26017
Loading
poll instead remove to avoid NoSuchElementException
#26017