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

   ### Motivation
   
   | Time/Threads | `consumer.receiveMessage` | Close Pulsar Source | Receive 
messages from Server |
   | --- | --- | --- | --- |
   | 1 | | | push a message into `consumer.incomingMessages` |
   | 2 | pop a message from `consumer.incomingMessages` |
   | 3 | reduce `incomingMessagesSize`: `0 -> -45` |
   | 4 | | Close Pulsar Source |
   | 5 | | Close producer |
   | 6 | | Failed due to `Try to reserve/release memory failed, the param 
memorySize is a negative value` |
   | 7 | | | plus `consumer.incomingMessagesSize` |
   
   ### Modifications
   
   - Let increasing `incomingMessagesSize` and decreasing 
`incomingMessagesSize` run in the same thread
     - Since it is hard to add a test to reproduce the issue, I skipped to 
write the test
   - Improve logs
   
   ### Does this pull request potentially affect one of the following parts:
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   *If the box was checked, please highlight the changes*
   
   - [ ] Dependencies (add or upgrade a dependency)
   - [ ] The public API
   - [ ] The schema
   - [ ] The default values of configurations
   - [ ] The threading model
   - [ ] The binary protocol
   - [ ] The REST endpoints
   - [ ] The admin CLI options
   - [ ] The metrics
   - [ ] Anything that affects deployment


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