You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/12/16 07:55:17 UTC

[GitHub] [rocketmq] dongeforever commented on pull request #2487: [ISSUE #2476] Fix HaClient Infinite loop

dongeforever commented on pull request #2487:
URL: https://github.com/apache/rocketmq/pull/2487#issuecomment-745862563


   @crazywen  The original reason is that the HAClient.READ_MAX_BUFFER_SIZE muse be equal or larger than the haTransferBatchSize.
   
   Otherwise, the slave HAClient cannot read all the data to byteBufferRead as it has been full already, and the reallocation will take no effect, the new buffer will still be full.
   
   ![image](https://user-images.githubusercontent.com/8434428/102320144-df6d1d80-3fb6-11eb-8f06-6f018c0e056a.png)
   
   
   


----------------------------------------------------------------
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