1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

Made the loadbrm script sleep 1 sec after starting SM, if it starts SM.

This is to give SM time to init before we try to use it.
This commit is contained in:
Patrick LeBlanc
2020-08-25 09:56:27 -04:00
parent 4b46f55d6a
commit 1c27ca4ba4

View File

@ -60,6 +60,7 @@ if __name__ == '__main__':
print('Failed to start storagemanager. \
{} exits with {}.'.format(cmd, retcode))
sys.exit(1)
time.sleep(1) # allow SM time to init
brm = 'data1/systemFiles/dbrm/BRM_saves_current'
config_root.find('./Installation/DBRootStorageType').text = "StorageManager"
@ -70,8 +71,6 @@ if __name__ == '__main__':
config_root.find('./SystemConfig/DataFilePlugin').text = "libcloudio.so"
cs_config.write('/etc/columnstore/Columnstore.xml')
# Delay to allow SM to start up
time.sleep(15)
# Single-node on S3
if storage.lower() == 's3' and not bucket.lower() == 'some_bucket' and pmCount == 1: