self._do_thrash()
except Exception as e:
# See _run exception comment for MDSThrasher
- self.exception = e
+ self.set_thrasher_exception(e)
self.logger.exception("exception:")
# Allow successful completion so gevent doesn't see an exception.
# The DaemonWatchdog will observe the error and tear down the test.
# File "/usr/lib/python2.7/traceback.py", line 13, in _print
# file.write(str+terminator)
# 2017-02-03T14:34:01.261 CRITICAL:root:IOError
- self.exception = e
+ self.set_thrasher_exception(e)
self.logger.exception("exception:")
# allow successful completion so gevent doesn't see an exception...
self._do_thrash()
except Exception as e:
# See _run exception comment for MDSThrasher
- self.exception = e
+ self.set_thrasher_exception(e)
self.logger.exception("exception:")
# Allow successful completion so gevent doesn't see an exception.
# The DaemonWatchdog will observe the error and tear down the test.
self.do_thrash()
except Exception as e:
# See _run exception comment for MDSThrasher
- self.exception = e
+ self.set_thrasher_exception(e)
self.logger.exception("exception:")
# Allow successful completion so gevent doesn't see an exception.
# The DaemonWatchdog will observe the error and tear down the test.
def exception(self):
return self._exception
- @exception.setter
- def exception(self, e):
+ def set_thrasher_exception(self, e):
self._exception = e