You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/06/26 18:23:39 UTC

[GitHub] [pulsar-client-go] merlimat opened a new pull request #301: Removed blocking queue iterator

merlimat opened a new pull request #301:
URL: https://github.com/apache/pulsar-client-go/pull/301


   ### Motivation
   
   The blocking queue iterator method is not really thread safe in the presence of other read/write operations on the queue. While it makes a snapshot of what's readable at one point, if there are `Poll()` operations, it might be ending up reading new items before the new ones.
   
   For that, it's better to make a copy of the items in the queue, also considering that iterating over this queue is only done on reconnections and it's not performance sensitive.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-go] wolfstudy merged pull request #301: Removed blocking queue iterator

Posted by GitBox <gi...@apache.org>.
wolfstudy merged pull request #301:
URL: https://github.com/apache/pulsar-client-go/pull/301


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org