From dfa322991a6a335fc2cbb482ce39dd853dc9d55f Mon Sep 17 00:00:00 2001 From: liuheng Date: Fri, 27 Sep 2024 09:42:44 +0800 Subject: [PATCH] =?UTF-8?q?gs=5Fdropnode=E5=88=A0=E9=99=A4=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E5=90=8C=E4=B8=80=E6=97=B6=E9=97=B4=E5=8F=AA=E6=9C=89?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E8=BF=9B=E7=A8=8B=E5=AD=98=E5=9C=A8=E7=9A=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/gs_dropnode | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/script/gs_dropnode b/script/gs_dropnode index a35f9fd..fd42e81 100644 --- a/script/gs_dropnode +++ b/script/gs_dropnode @@ -208,16 +208,6 @@ General options: GaussLog.exitWithError(ErrorCode.GAUSS_358["GAUSS_35802"] % \ self.hostIpListForDel) - def check_repeat_process(self): - """ - Check whether the same gs_dropnode command be run at the same time - """ - cmd = "ps -ef | grep 'gs_dropnode -U %s -G %s' | grep -v grep" \ - % (self.user, self.group) - (status, output) = subprocess.getstatusoutput(cmd) - if status == 0 and len(output.split('\n')) > 1: - GaussLog.exitWithError(ErrorCode.GAUSS_358["GAUSS_35810"]) - def flagForOnlyPrimaryLeft(self): """ function: Check whether only one node be left in the cluster @@ -341,7 +331,6 @@ if __name__ == "__main__": dropNode.parseCommandLine() dropNode.initLogs() DefaultValue.check_is_streaming_dr_cluster() - dropNode.check_repeat_process() dropNode.checkParameters() dropNode.checkConnection(list(dropNode.backIpNameMap.keys()), dropNode.envFile)