def tearDownModule(): global vtgate_server logging.debug("in tearDownModule") if utils.options.skip_teardown: return logging.debug("Tearing down the servers and setup") utils.vtgate_kill(vtgate_server) tablet.kill_tablets([shard_0_master, shard_0_replica, shard_1_master, shard_1_replica]) teardown_procs = [shard_0_master.teardown_mysql(), shard_0_replica.teardown_mysql(), shard_1_master.teardown_mysql(), shard_1_replica.teardown_mysql(), ] utils.wait_procs(teardown_procs, raise_on_error=False) environment.topo_server_teardown() utils.kill_sub_processes() utils.remove_tmp_files() shard_0_master.remove_tree() shard_0_replica.remove_tree() shard_1_master.remove_tree() shard_1_replica.remove_tree()
def tearDownModule(): if utils.options.skip_teardown: return if use_mysqlctld: # Try to terminate mysqlctld gracefully, so it kills its mysqld. for proc in setup_procs: utils.kill_sub_process(proc, soft=True) else: teardown_procs = [ tablet_62344.teardown_mysql(), tablet_31981.teardown_mysql(), ] utils.wait_procs(teardown_procs, raise_on_error=False) environment.topo_server_teardown() utils.kill_sub_processes() utils.remove_tmp_files() tablet_62344.remove_tree() tablet_31981.remove_tree() path = os.path.join(environment.vtdataroot, 'snapshot') try: shutil.rmtree(path) except OSError as e: logging.debug("removing snapshot %s: %s", path, str(e))
def tearDownModule(): if utils.options.skip_teardown: return teardown_procs = [ shard_master.teardown_mysql(), shard_replica.teardown_mysql(), shard_rdonly.teardown_mysql(), shard_0_master.teardown_mysql(), shard_0_replica.teardown_mysql(), shard_0_rdonly.teardown_mysql(), shard_1_master.teardown_mysql(), shard_1_replica.teardown_mysql(), shard_1_rdonly.teardown_mysql(), ] utils.wait_procs(teardown_procs, raise_on_error=False) environment.topo_server_teardown() utils.kill_sub_processes() utils.remove_tmp_files() shard_master.remove_tree() shard_replica.remove_tree() shard_rdonly.remove_tree() shard_0_master.remove_tree() shard_0_replica.remove_tree() shard_0_rdonly.remove_tree() shard_1_master.remove_tree() shard_1_replica.remove_tree() shard_1_rdonly.remove_tree()
def tearDownModule(): if utils.options.skip_teardown: return environment.topo_server_teardown() utils.kill_sub_processes() utils.remove_tmp_files()
def shutdown(self): utils.vtgate_kill(self.vtgate_server) tablet.kill_tablets(self.tablets) teardown_procs = [t.teardown_mysql() for t in self.tablets] utils.wait_procs(teardown_procs, raise_on_error=False) environment.topo_server_teardown() utils.kill_sub_processes() utils.remove_tmp_files() for t in self.tablets: t.remove_tree()
def tearDown(self): self.tablet.kill_vttablet() try: utils.wait_procs([self.tablet.teardown_mysql()]) except: # FIXME: remove pass if getattr(self, "txlogger", None): self.txlogger.terminate() environment.topo_server_teardown() utils.kill_sub_processes()
def tearDown(self): self.preTeardown() self.tablet.kill_vttablet() try: utils.wait_procs([self.tablet.teardown_mysql()]) except: # FIXME: remove pass if getattr(self, "txlogger", None): self.txlogger.terminate() environment.topo_server_teardown() utils.kill_sub_processes()
def tearDownModule(): if utils.options.skip_teardown: return teardown_procs = [t.teardown_mysql() for t in tablets] utils.wait_procs(teardown_procs, raise_on_error=False) environment.topo_server_teardown() utils.kill_sub_processes() utils.remove_tmp_files() for t in tablets: t.remove_tree()
def tearDownModule(): if utils.options.skip_teardown: return logging.debug("Tearing down the servers and setup") tablet.kill_tablets([master_tablet, replica_tablet]) teardown_procs = [master_tablet.teardown_mysql(), replica_tablet.teardown_mysql()] utils.wait_procs(teardown_procs, raise_on_error=False) environment.topo_server_teardown() utils.vtgate_kill(vtgate_server) utils.kill_sub_processes() utils.remove_tmp_files() master_tablet.remove_tree() replica_tablet.remove_tree()
def tearDownModule(): if utils.options.skip_teardown: return tablet.kill_tablets([master_tablet, replica_tablet]) teardown_procs = [ master_tablet.teardown_mysql(), replica_tablet.teardown_mysql(), ] utils.wait_procs(teardown_procs, raise_on_error=False) environment.topo_server_teardown() utils.kill_sub_processes() utils.remove_tmp_files() master_tablet.remove_tree() replica_tablet.remove_tree()
def tearDownModule(): if utils.options.skip_teardown: return teardown_procs = [tablet_62344.teardown_mysql(), tablet_62044.teardown_mysql()] utils.wait_procs(teardown_procs, raise_on_error=False) environment.topo_server_teardown() utils.kill_sub_processes() utils.remove_tmp_files() tablet_62344.remove_tree() tablet_62044.remove_tree() path = os.path.join(environment.vtdataroot, "snapshot") try: shutil.rmtree(path) except OSError as e: logging.debug("removing snapshot %s: %s", path, str(e))
def tearDownModule(): if utils.options.skip_teardown: return teardown_procs = [ tablet_62344.teardown_mysql(), tablet_62044.teardown_mysql(), tablet_41983.teardown_mysql(), tablet_31981.teardown_mysql(), ] utils.wait_procs(teardown_procs, raise_on_error=False) environment.topo_server_teardown() utils.kill_sub_processes() utils.remove_tmp_files() tablet_62344.remove_tree() tablet_62044.remove_tree() tablet_41983.remove_tree() tablet_31981.remove_tree()
def tearDownModule(): if utils.options.skip_teardown: return tablet.kill_tablets([src_master, src_replica, dst_master, dst_replica]) teardown_procs = [ src_master.teardown_mysql(), src_replica.teardown_mysql(), dst_master.teardown_mysql(), dst_replica.teardown_mysql(), ] utils.wait_procs(teardown_procs, raise_on_error=False) environment.topo_server_teardown() utils.kill_sub_processes() utils.remove_tmp_files() src_master.remove_tree() src_replica.remove_tree() dst_master.remove_tree() dst_replica.remove_tree()
def tearDownModule(): if utils.options.skip_teardown: return teardown_procs = [ tablet_62344.teardown_mysql(), tablet_31981.teardown_mysql(), ] utils.wait_procs(teardown_procs, raise_on_error=False) environment.topo_server_teardown() utils.kill_sub_processes() utils.remove_tmp_files() tablet_62344.remove_tree() tablet_31981.remove_tree() path = os.path.join(environment.vtdataroot, 'snapshot') try: shutil.rmtree(path) except OSError as e: logging.debug("removing snapshot %s: %s", path, str(e))
def tearDownModule(): if utils.options.skip_teardown: return global vtgate_server utils.vtgate_kill(vtgate_server) tablet.kill_tablets([ shard_0_master, shard_0_replica, shard_0_rdonly, shard_1_master, shard_1_replica, shard_1_rdonly ]) teardown_procs = [ shard_0_master.teardown_mysql(), shard_0_replica.teardown_mysql(), shard_0_rdonly.teardown_mysql(), shard_1_master.teardown_mysql(), shard_1_replica.teardown_mysql(), shard_1_rdonly.teardown_mysql(), unsharded_master.teardown_mysql(), unsharded_replica.teardown_mysql(), unsharded_rdonly.teardown_mysql(), ] utils.wait_procs(teardown_procs, raise_on_error=False) environment.topo_server_teardown() utils.kill_sub_processes() utils.remove_tmp_files() shard_0_master.remove_tree() shard_0_replica.remove_tree() shard_0_rdonly.remove_tree() shard_1_master.remove_tree() shard_1_replica.remove_tree() shard_1_rdonly.remove_tree() shard_1_rdonly.remove_tree() shard_1_rdonly.remove_tree() unsharded_master.remove_tree() unsharded_replica.remove_tree() unsharded_rdonly.remove_tree()
def tearDown(self): if self.querylog: self.querylog.close() self.tablet.kill_vttablet() try: mcu = self.mysql_conn.cursor() for line in self.clean_sqls: try: mcu.execute(line, {}) except: pass mcu.close() utils.wait_procs([self.tablet.teardown_mysql()]) except: # FIXME: remove pass if getattr(self, "txlogger", None): self.txlogger.terminate() if self.env == 'vttablet': environment.topo_server_teardown() utils.kill_sub_processes() utils.remove_tmp_files() self.tablet.remove_tree()
def tearDownModule(): if utils.options.skip_teardown: return global vtgate_server utils.vtgate_kill(vtgate_server) tablet.kill_tablets([shard_0_master, shard_0_replica, shard_0_rdonly, shard_1_master, shard_1_replica, shard_1_rdonly]) teardown_procs = [ shard_0_master.teardown_mysql(), shard_0_replica.teardown_mysql(), shard_0_rdonly.teardown_mysql(), shard_1_master.teardown_mysql(), shard_1_replica.teardown_mysql(), shard_1_rdonly.teardown_mysql(), unsharded_master.teardown_mysql(), unsharded_replica.teardown_mysql(), unsharded_rdonly.teardown_mysql(), ] utils.wait_procs(teardown_procs, raise_on_error=False) environment.topo_server_teardown() utils.kill_sub_processes() utils.remove_tmp_files() shard_0_master.remove_tree() shard_0_replica.remove_tree() shard_0_rdonly.remove_tree() shard_1_master.remove_tree() shard_1_replica.remove_tree() shard_1_rdonly.remove_tree() shard_1_rdonly.remove_tree() shard_1_rdonly.remove_tree() unsharded_master.remove_tree() unsharded_replica.remove_tree() unsharded_rdonly.remove_tree()