Skip to content

Commit 0236ede

Browse files
water32tuhaihe
authored andcommitted
Update gpstop
When the environment variables COORDINATOR_DATA_DIRECTORY are not set correctly, the error message is meaningless
1 parent e20a488 commit 0236ede

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gpMgmt/bin/gpstop

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#
88
# import mainUtils FIRST to get python version check
99
from gppylib.mainUtils import *
10+
from gppylib.commands.gp import *
1011

1112
import os, sys
1213
import signal
@@ -959,9 +960,7 @@ class GpStop:
959960

960961
if is_external_fts:
961962
if options.fts_hosts is None:
962-
coordinator_data_directory = os.getenv('COORDINATOR_DATA_DIRECTORY')
963-
if coordinator_data_directory is None:
964-
coordinator_data_directory = options.coordinatorDataDirectory
963+
coordinator_data_directory = get_coordinatordatadir()
965964

966965
options.fts_hosts = coordinator_data_directory + '/config' + '/fts_host'
967966

0 commit comments

Comments
 (0)