GitHub user cgeffect edited a discussion: [crash bug] c++ rocketmq::Producer析构时程序crash
Linux centos, rocketmq 5.0.1版本 在一个函数内部创建了一个rocketmq::Producer, 注册的topic还没有在控制台创建, 出了函数作用域rocketmq::Producer析构. 程序crash [2024-04-22 18:41:01.045] [info] [ClientImpl.cpp:304] Create inflight route query cache for topic=algorithm_topic [2024-04-22 18:41:01.051] [warning] [ClientManagerImpl.cpp:602] TopicNotFound: CODE: 17 DESC: No topic route info in name server for the topic: algorithm_topic For more information, please visit the url, https://rocketmq.apache.org/docs/bestPractice/06FAQ. Host=dns:rmq-cn-x0r37m9fl03-vpc.cn-hangzhou.rmq.aliyuncs.com:8080 [2024-04-22 18:41:01.051] [warning] [ClientImpl.cpp:328] Failed to resolve route for topic=algorithm_topic from dns:rmq-cn-x0r37m9fl03-vpc.cn-hangzhou.rmq.aliyuncs.com:8080 [2024-04-22 18:41:01.051] [info] [ClientImpl.cpp:331] Change current name server from dns:rmq-cn-x0r37m9fl03-vpc.cn-hangzhou.rmq.aliyuncs.com:8080 to dns:rmq-cn-x0r37m9fl03-vpc.cn-hangzhou.rmq.aliyuncs.com:8080 [2024-04-22 18:41:01.051] [warning] [ClientImpl.cpp:438] Yuck! route for algorithm_topic is invalid. Cause: Request resource not found, which should be created through console or administration API before hand. [2024-04-22 18:41:01.051] [error] [ClientImpl.cpp:146] Failed to query route for algorithm_topic during starting. Cause: Request resource not found, which should be created through console or administration API before hand. [2024-04-22 18:41:01.052] [error] [ClientImpl.cpp:217] Unknown metric address scheme [2024-04-22 18:41:01.052] [info] [ClientImpl.cpp:194] Export client metrics to rmq-cn-x0r37m9fl03-vpc.cn-hangzhou.rmq.aliyuncs.com:8081 [2024-04-22 18:41:16.298] [info] [SchedulerImpl.cpp:165] Execute task: route_updater. Use-count: 2 [2024-04-22 18:41:16.298] [info] [SchedulerImpl.cpp:165] Execute task: heartbeat-task. Use-count: 2 [2024-04-22 18:41:16.298] [warning] [ClientImpl.cpp:389] No hosts to send heartbeat to at present [2024-04-22 18:41:16.298] [info] [SchedulerImpl.cpp:165] Execute task: heartbeat-task. Use-count: 2 [2024-04-22 18:41:16.298] [warning] [ClientImpl.cpp:389] No hosts to send heartbeat to at present [2024-04-22 18:41:16.299] [info] [ProducerImpl.cpp:62] Producer instance is destructed [2024-04-22 18:41:16.299] [info] [SchedulerImpl.cpp:155] Cancel task[task-id=2, name=route_updater] [2024-04-22 18:41:16.299] [info] [SchedulerImpl.cpp:155] Cancel task[task-id=3, name=client_settings_sync] [2024-04-22 18:41:16.299] [info] [ClientManagerImpl.cpp:122] Client manager shutdown [2024-04-22 18:41:16.308] [info] [SchedulerImpl.cpp:155] Cancel task[task-id=1, name=heartbeat-task] [2024-04-22 18:41:16.309] [info] [ClientManagerImpl.cpp:92] ClientManager[ResourceNamespace=] destructed [2024-04-22 18:41:16.309] [info] [ProducerImpl.cpp:91] Producer instance stopped [2024-04-22 18:41:16.309] [info] [TelemetryBidiReactor.cpp:297] dns:rmq-cn-x0r37m9fl03-vpc.cn-hangzhou.rmq.aliyuncs.com:8080#fireClose [2024-04-22 18:41:16.398] [warning] [RpcClientImpl.cpp:52] ClientManager has destructed. Response ignored [2024-04-22 18:41:39.693] [info] [TelemetryBidiReactor.cpp:297] dns:rmq-cn-x0r37m9fl03-vpc.cn-hangzhou.rmq.aliyuncs.com:8080#fireClose rocketmq::Producer对象不能析构吗? GitHub link: https://github.com/apache/rocketmq-clients/discussions/733 ---- This is an automatically sent email for dev@rocketmq.apache.org. To unsubscribe, please send an email to: dev-unsubscr...@rocketmq.apache.org