def get_results(self): ret = [] results = [] LOGGER.debug('Wait for %s stress threads results', self.max_workers) for future in concurrent.futures.as_completed(self.results_futures, timeout=self.timeout): results.append(future.result()) for _, result in results: if not result: # Silently skip if stress command threw error, since it was already reported in _run_stress continue output = result.stdout + result.stderr try: lines = output.splitlines() node_cs_res = BaseLoaderSet._parse_cs_summary(lines) # pylint: disable=protected-access if node_cs_res: ret.append(node_cs_res) except Exception as exc: # pylint: disable=broad-except CassandraStressEvent.failure( node="", errors=[ f"Failed to process stress summary due to {exc}", ]) return ret
def get_results(self): ret = [] results = [] LOGGER.debug('Wait for %s stress threads results', self.max_workers) for future in concurrent.futures.as_completed(self.results_futures, timeout=self.timeout): results.append(future.result()) for node, result in results: output = result.stdout + result.stderr lines = output.splitlines() node_cs_res = BaseLoaderSet._parse_cs_summary(lines) if node_cs_res: ret.append(node_cs_res) return ret
def verify_results(self): results = [] cs_summary = [] errors = [] LOGGER.debug('Wait for %s stress threads to verify', self.max_workers) for future in concurrent.futures.as_completed(self.results_futures, timeout=self.timeout): results.append(future.result()) for node, result in results: output = result.stdout + result.stderr lines = output.splitlines() node_cs_res = BaseLoaderSet._parse_cs_summary(lines) if node_cs_res: cs_summary.append(node_cs_res) for line in lines: if 'java.io.IOException' in line: errors += ['%s: %s' % (node, line.strip())] return cs_summary, errors
def verify_results(self): results = [] cs_summary = [] errors = [] LOGGER.debug('Wait for %s stress threads to verify', self.max_workers) for future in concurrent.futures.as_completed(self.results_futures, timeout=self.timeout): results.append(future.result()) for node, result in results: if not result: # Silently skip if stress command threw error, since it was already reported in _run_stress continue output = result.stdout + result.stderr lines = output.splitlines() node_cs_res = BaseLoaderSet._parse_cs_summary(lines) # pylint: disable=protected-access if node_cs_res: cs_summary.append(node_cs_res) for line in lines: if 'java.io.IOException' in line: errors += ['%s: %s' % (node, line.strip())] return cs_summary, errors