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

   ### Motivation
   
   when transaction buffer recover fail, we don't remove the producer future 
from the producer map. If producer reconnect to this broker, it will throw 
   ```
   pulsar-io-5-1] WARN  org.apache.pulsar.broker.service.ServerCnx - 
[/10.124.4.69:49108][persistent://public/default/s_topic-partition-5] Producer 
with id is already present on the connection, 
producerId=45",2022-04-02T06:34:17.042900012Z
   ```
   and if client don't restart, we can't recover this producer the producer has 
been stucked
   ### Modifications
   
   when topic transaction buffer recvoer fail, remove the producer from the map.
   
   in master branch, https://github.com/apache/pulsar/pull/14467 has fixed this 
problem
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   This change is a trivial rework / code cleanup without any test coverage.
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (no)
     - The schema: (no)
     - The default values of configurations: (no)
     - The wire protocol: (no)
     - The rest endpoints: (no)
     - The admin cli options: (no)
     - Anything that affects deployment: (no)
   
   ### Documentation
   
   Check the box below and label this PR (if you have committer privilege).
   
   Need to update docs? 
     
   - [x] `no-need-doc` 
   bug fix.


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