lhotari commented on PR #24055: URL: https://github.com/apache/pulsar/pull/24055#issuecomment-2701410663
> The estimated entry count may be a negative value in some cases, then the read operation will get an empty result. @gaoran10 Just wondering how it could result could exceed `Integer.MAX_VALUE` so that the integer value becomes negative in the current logic. Is it the line `result += remainEntriesOfLedger;` in `estimateEntryCountBySize` method that causes it? Could we also improve the existing logic and add some test cases to reproduce and prevent such regressions? -- 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: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org