Skip to content

[Bug] golang sdk MaxAttempts will be override by server which is not expected as others #1148

@absolute8511

Description

@absolute8511

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • 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

ps.retryPolicy.MaxAttempts = retryPolicy.GetMaxAttempts()

the setting sync will override the MaxAttempts, but in Java it is not. Actually the MaxAttempts should be controlled by the client

For java,

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

Image

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions