Maxim Khutornenko created AURORA-900:
----------------------------------------
Summary: TransientError response message is not processed correctly
Key: AURORA-900
URL: https://issues.apache.org/jira/browse/AURORA-900
Project: Aurora
Issue Type: Bug
Reporter: Maxim Khutornenko
Assignee: Maxim Khutornenko
Priority: Critical
The assembling of error message in case of a TransientError is not done
correctly in scheduler_client.py.
Incorrect:
{noformat}
raise self.TransientError(", ".join(
[m for m in resp.details] if resp.details else []))
{noformat}
Correct:
{noformat}
raise self.TransientError(", ".join(
[m.message for m in resp.details] if resp.details else []))
{noformat}
This is the unfortunate case of python dynamic typing where the unit test did
not catch the problem due to matching incorrect expectations:
{noformat}
mock_thrift_client.killTasks.side_effect = [
Response(responseCode=ResponseCode.ERROR_TRANSIENT,
details=["message1", "message2"],
...
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)