absolute8511 opened a new issue, #1148:
URL: https://github.com/apache/rocketmq-clients/issues/1148

   ### Before Creating the Bug Report
   
   - [x] I found a bug, not just asking a question, which should be created in 
[GitHub Discussions](https://github.com/apache/rocketmq-clients/discussions).
   
   - [x] I have searched the [GitHub 
Issues](https://github.com/apache/rocketmq-clients/issues) and [GitHub 
Discussions](https://github.com/apache/rocketmq-clients/discussions)  of this 
repository and believe that this is not a duplicate.
   
   - [x] I have confirmed that this bug belongs to the current repository, not 
other repositories of RocketMQ.
   
   
   ### Programming Language of the Client
   
   Go
   
   ### Runtime Platform Environment
   
   Any
   
   ### RocketMQ Version of the Client/Server
   
   Any
   
   ### Run or Compiler Version
   
   Any
   
   ### Describe the Bug
   
   
https://github.com/apache/rocketmq-clients/blob/fd58dabaa43c4218344b87f6bbcf1251bfb9b5b8/golang/producer_options.go#L155
   
   the setting sync will override the `MaxAttempts`, but in Java it is not.  
Actually the MaxAttempts should be controlled by the client
   
   ### Steps to Reproduce
   
   Change MaxAttempts using WithMaxAttempts(1), then send message
   
   ### What Did You Expect to See?
   
   Should attempt less
   
   ### What Did You See Instead?
   
   Still attempts = 3
   
   <img width="1208" height="656" alt="Image" 
src="https://github.com/user-attachments/assets/fc5852a1-723c-41e5-80f1-73de653b5489";
 />
   
   ### Additional Context
   
   _No response_


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