客户端 gRPC 重连后临时实例未再次注册(服务端已删除实例,RedoType 一直为 NONE)
Problem Description
After a single client JVM is stuck for a long time (about 100 seconds), the Nacos service server normally removes the temporary instance according to the expired connection inspection. The business service is single node, and the Nacos service is also single node. After the process resumes, the client reconnects and successfully sends a single InstanceRequest (registerInstance), but the naming connection is disconnected within about 280ms during the reconnection storm. The following occurs: - The naming gRPC connection still survives - The service server has no instances for the business service (and then services are automatically cleaned) - The client no longer sends a second write registration (InstanceRequest action = w) Initial judgment: The local redo state still considers "registered" (RedoType = NONE), and the RedoScheduledTask is idle; while the service instance has been deleted after the connection is disconnected, and the two sides are permanently out of sync.
内容来源: alibaba/nacos