merlimat commented on pull request #10330: URL: https://github.com/apache/pulsar/pull/10330#issuecomment-825892870
> So the argument type, which is passed to LedgerHandle#asyncAddEntry, is UnpooledDuplicatedByteBuf not CompositeByteBuf. @BewareMyPower We might need to use `ByteBuf.unwrap()` to access to the wrapped buffer. > I tried to change the code above to > ByteBuf duplicateBuffer = data.retainedDuplicate(); > But it still didn't work (even worse). I've added some debug logs to BK: There's an extra retain, that would also require another release on the buffer. -- 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: [email protected]
