def started_cluster(): try: cluster.start() yield cluster finally: cluster.shutdown()
def started_node(): cluster = helpers.cluster.ClickHouseCluster(__file__) try: node = cluster.add_instance("node", main_configs=[ os.path.join(SCRIPT_DIR, "configs", "config_send_crash_reports.xml") ]) cluster.start() yield node finally: cluster.shutdown()
def started_node(): cluster = helpers.cluster.ClickHouseCluster(__file__) try: node = cluster.add_instance("node", main_configs=[ os.path.join( SCRIPT_DIR, "configs", "config_send_crash_reports.xml") ]) cluster.start() yield node finally: # It will print Fatal message after pkill -SEGV, suppress it try: cluster.shutdown() except: pass