Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert exception to string in driver #500

Merged
merged 1 commit into from
May 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion esrally/driver/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,9 @@ def receiveMsg_WakeupMessage(self, msg, sender):
e = self.executor_future.exception(timeout=0)
if e:
logger.info("LoadGenerator[%s] has detected a benchmark failure. Notifying master..." % str(self.client_id))
self.send(self.master, actor.BenchmarkFailure("Error in load generator [%d]" % self.client_id, e))
# the exception might be user-defined and not be on the load path of the master driver. Hence, it cannot be
# deserialized on the receiver so we convert it here to a plain string.
self.send(self.master, actor.BenchmarkFailure("Error in load generator [{}]".format(self.client_id), str(e)))
else:
logger.info("LoadGenerator[%s] is ready for the next task." % str(self.client_id))
self.executor_future = None
Expand Down