Esempio n. 1
0
def started_cluster():
    try:
        cluster.start()
        yield cluster

    finally:
        cluster.shutdown()
Esempio n. 2
0
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()
Esempio n. 3
0
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