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 2018/02/08 06:45:14 UTC
[GitHub] merlimat opened a new pull request #1203: Use duplicates when writing from ByteBuf pair to avoid multiple threads issues
merlimat opened a new pull request #1203: Use duplicates when writing from ByteBuf pair to avoid multiple threads issues
URL: https://github.com/apache/incubator-pulsar/pull/1203
### Motivation
This is a fix for #1201.
The truncation happens when, during an unload, the topic moves from one broker to another. If the write operation on the previous connection was still ongoing, it can cause issues when the new IO (associated with the "new" connection) will start writing on the new socket.
### Modifications
Take a duplicate of the`ByteBuf` so that each thread will have its own `readerIndex` on the buffer.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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
With regards,
Apache Git Services