GBase 8a V95版本升级时,报出[GCWARE] connect X.X.X.X:7959 error, Connection refused信息,但运行正常

GBase 8a V95在升级时,会自动刷新原有系统的REDOLOG,而启动gcware服务是需要时间的,期间尝试连接时就会报错这样的信息。

信息样例

Refreshing snapshot,please wait...
211215 10:41:43 [GCWARE] connect to 10.0.2.101 error:connect 10.0.2.101:7959 error, Connection refused

211215 10:41:44 [GCWARE] connect to 10.0.2.115 error:connect 10.0.2.115:7959 error, Connection refused

Connection gcware failed,try to connection again.
Connection gcware failed,try to connection again.
Connection gcware successfully,get all nodes status end.
Refresh snapshot successfully.

原因

刷新将上一个版本的REDOLOG。数据库升级前,服务是stop状态,此时升级程序会【只】启动gcware服务,然后刷新REDOLOG。在命令下发后,所有节点服务全部可以对外提供服务期间,升级程序会周期性的尝试,如果有节点当前服务还没有准备好,则会报无法连接的错误信息。

211215 10:41:43 [GCWARE] connect to 10.0.2.101 error:connect 10.0.2.101:7959 error, Connection refused

211215 10:41:44 [GCWARE] connect to 10.0.2.115 error:connect 10.0.2.115:7959 error, Connection refused

等所有节点都准备好了,则会执行刷新工作。

Connection gcware successfully,get all nodes status end.
Refresh snapshot successfully.

刷新完成后,会将gcware服务停下来。

从升级日志gcinstall.log里可以看到如下信息

021-12-15 10:41:37,135-INFO Refreshing snapshot,please wait...
2021-12-15 10:41:42,435-INFO start gcware on 10.0.2.115 successfully.
2021-12-15 10:41:42,674-INFO start gcware on 10.0.2.101 successfully.
2021-12-15 10:41:51,134-INFO gcware unavailable work on 10.0.2.101,please check status!
2021-12-15 10:41:51,603-INFO gcware unavailable work on 10.0.2.101,please check status!
2021-12-15 10:42:13,979-INFO stop gcware on 10.0.2.115 successfully.
2021-12-15 10:42:14,475-INFO stop gcware on 10.0.2.101 successfully.

影响

如果出现了Refresh snapshot successfully, 则刷新成功,则升级继续,否则会报错退出。