lhotari commented on issue #22601: URL: https://github.com/apache/pulsar/issues/22601#issuecomment-2132973488
@semistone Some initial comments about the reproduce steps. Btw. regarding "op.data = data.asReadOnly(); <=== then that error disappear but I still don't known why." in https://github.com/semistone/personal_notes/blob/main/pulsar_issue_22601/Test.md The reason why it happens to fix the issue is that `.asReadOnly()` contains a bug. https://github.com/netty/netty/issues/14075 (will be fixed in Netty 4.1.111). Because of the bug, the buffer is never released. Since it seems to fix the issue, it means that there are buffer reference count issues. Most likely the `.asReadOnly()` usage would cause a memory leak. There are also other Netty bugs impacting the use case. There are 4 PRs that will be in 4.1.111 . Before that, it might be able to find workarounds. Since the workarounds would be temporary, it could be useful to do a local build using 4.1.111-SNAPSHOT version. In addition, the fixes pending for Bookkeeper 4.16.6 will be needed to fix the problem. It would be useful to build BK from branch-4.16 and use 4.16.6-SNAPSHOT version. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
