apache / rocketmq-clients

RocketMQ Clients - Collection of Client Bindings for Apache RocketMQ
https://rocketmq.apache.org/
Apache License 2.0
302 stars 202 forks source link

[Bug] Consume启动报错 #824

Open nigel0913 opened 3 weeks ago

nigel0913 commented 3 weeks ago

Before Creating the Bug Report

Programming Language of the Client

Go

Runtime Platform Environment

macOS Ventura 13.5

RocketMQ Version of the Client/Server

github.com/apache/rocketmq-clients/golang/v5 v5.1.1-rc1

Run or Compiler Version

go version go1.22.2 darwin/arm64

Describe the Bug

启动consumer时报错:CODE: UNRECOGNIZED_CLIENT_TYPE, MESSAGE: cannot find client settings for this client。 触发自己写的自动重启,然后重复报错(自动重启有1秒间隔)

Steps to Reproduce

没有复现手段,有时候重启进程就会报错,有时候正常

What Did You Expect to See?

能够正常启动然后消费消息

What Did You See Instead?

一旦发生报错,就会不断重复报错,无法正常消费。

Additional Context

使用阿里云的RocketMQ v5版本,外网模式。

nigel0913 commented 3 weeks ago

启动时rocketmq_client_go.log日志内容:

2024-08-20T20:15:23.074+0800    ERROR   v5@v5.1.1-rc1/client.go:434 failed to send heartbeat, code=UNRECOGNIZED_CLIENT_TYPE, status message=[cannot find client settings for this client], endpoints=scheme:DOMAIN_NAME  addresses:{host:"rmq-cn-******.cn-shanghai.rmq.aliyuncs.com"  port:8081}, requestId=[3c3f6e0a-4baf-4639-9577-******]   {"client_id": "******"}
2024-08-20T20:15:23.075+0800    ERROR   v5@v5.1.1-rc1/client.go:458 CODE: UNRECOGNIZED_CLIENT_TYPE, MESSAGE: cannot find client settings for this client    {"client_id": "******"}
2024-08-20T20:15:23.075+0800    ERROR   v5@v5.1.1-rc1/client.go:486 telemeter to rmq-cn-******.cn-shanghai.rmq.aliyuncs.com:8081 failed, err=EOF    {"client_id": "******"}

一直重复这3行内容。