Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Bug] Updating consumer points using the remoting port of RocketMQ 5.3.0 client timeout. #9673

Copy link
Copy link
@zkking

Description

@zkking
Issue body actions

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.

Runtime platform environment

CentOS 7.9

RocketMQ version

RocketMQ Server: 5.3.0、5.3.2
RocketMQ Client: 5.3.0

JDK Version

JDK 1.8.0_461

Describe the Bug

Updating consumer points using the remoting port of RocketMQ 5.3.0 client timed out. But everything is normal on the broker port。

Attempted to replace with the following issue fix versions, but none of them resolved the issue:
Issue: 7199
Issue: 7238
Issue: 9630

Steps to Reproduce

  1. The client code is as follows:
DefaultMQAdminExt newAdmin = new DefaultMQAdminExt();
newAdmin.setNamesrvAddr(NEW_NAMESRV);
newAdmin.setInstanceName("offset-target-" + consumerGroup);
newAdmin.setVipChannelEnabled(false);
newAdmin.start();

// update target rocketmq offset
newAdmin.updateConsumeOffset(BROKER_ADDR, consumerGroup, “broker-0”, "0");
  1. The output result is as follows:
org.apache.rocketmq.remoting.exception.RemotingTimeoutException: wait response on the channel </192.168.0.10:30006> timeout, 4919(ms)
        at org.apache.rocketmq.remoting.netty.NettyRemotingAbstract.invokeSyncImpl(NettyRemotingAbstract.java:504)
        at org.apache.rocketmq.remoting.netty.NettyRemotingClient.invokeSync(NettyRemotingClient.java:555)
        at org.apache.rocketmq.client.impl.MQClientAPIImpl.updateConsumerOffset(MQClientAPIImpl.java:1489)
        at org.apache.rocketmq.tools.admin.DefaultMQAdminExtImpl.updateConsumeOffset(DefaultMQAdminExtImpl.java:1732)
        at org.apache.rocketmq.tools.admin.DefaultMQAdminExt.updateConsumeOffset(DefaultMQAdminExt.java:699)
        at com.demo.RocketMQMigrationApp.migrateOffsets(RocketMQMigrationApp.java:137)
        at com.demo.RocketMQMigrationApp.main(RocketMQMigrationApp.java:45)
  1. rmq-proxy.json
{
"rocketMQClusterName": "DefaultCluster",
"namesrvAddr": "192.168.0.10:30000",
"grpcServerPort": 30005,
"remotingListenPort": 30006
}
  1. Even after extending the timeout period, the update still fails
DefaultMQAdminExt newAdmin = new DefaultMQAdminExt(100000L);
...
  1. Except for the remoting.log, there is no log information for other modules
2025-09-08 17:43:46 INFO NettyServerNIOSelector_1 - NETTY SERVER PIPELINE: channelInactive, the channel[10.11.0.18:11292]
2025-09-08 17:43:46 INFO NettyServerNIOSelector_1 - NETTY SERVER PIPELINE: channelUnregistered, the channel[10.11.0.18:11292]
  1. If the above port is switched to a broker port, everything will be normal。Sending and receiving messages using the remoting port are both normal。

What Did You Expect to See?

Updating consumer points using the remoting port is normal

What Did You See Instead?

Running the following method timed out

newAdmin.updateConsumeOffset(BROKER_ADDR, consumerGroup, “broker-0”, "0");

Additional Context

No response

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.