lhotari opened a new pull request, #24131:
URL: https://github.com/apache/pulsar/pull/24131

   ### Motivation
   
   Following up on #24089 changes. The changes cause a regression which is 
visible in branch-3.0 where a test fails 
(`org.apache.pulsar.sql.presto.TestCacheSizeAllocator#cacheSizeAllocatorTest`). 
This test is missing from newer branches. The regression is caused by the logic 
added in #24089 to return 0 when bytes size <= 0. 
   
   ### Modifications
   
   - return 1 when bytes size <= 0 so that the previous behavior is preserved
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->


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

Reply via email to