Fix gpexpand flaky case (#7232)
As a kill may be not taken effect at "the database is killed on hosts " immediately, so we double check the cluster and stop database if it is still running. But if kill takes effect after checking, stop_database will raise an exception for gpstop will fail to stop an unstarted cluster. To fix this flaky case, we stop database first and check the database status later. It will raise an exception only when gpstop failed and the cluster is still running.
Showing
想要评论请 注册 或 登录