-
Notifications
You must be signed in to change notification settings - Fork 73
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
[4.0 -> main] Modify trace_api_plugin to report serialization errors to user #1469
Conversation
…ime to deserialize
[3.2] Modify trace_api_plugin to report serialization errors to user
[3.2 -> 4.0] Modify trace_api_plugin to report serialization errors to user
tests/trace_plugin_test.py
Outdated
Utils.Print("Ignore expected: ERROR: Node relaunch Failed") | ||
isRelaunchSuccess = node.relaunch(timeout=10, addSwapFlags={"--http-max-response-time-ms": "0", "--abi-serializer-max-time-ms": "0"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will the relaunch fail as the message indicates?
Also wondering if it is useful to assign to isRelaunchSuccess
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_info
can't fail in main
, so it actually does work. I'll update the test.
tests/plugin_http_api_test.py
Outdated
# get_transaction_trace with invalid parameter | ||
ret_json = self.nodeos.processUrllibRequest(resource, command, self.http_post_invalid_param) | ||
self.assertEqual(ret_json["code"], 400) | ||
# get_transaction_trace with valid parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# get_transaction_trace with valid parameter | |
# get_transaction_trace with syntactically correct parameter, but random id, so should return 404 (not found) |
Merges
release/4.0
intomain
including #1449 & #1468.The 3.1 & 3.2 version of this PR would send the deadline exception to the user so that they know they hit a deadline. In
main
there is no longer a deadline enforced fortrace_api_plugin
serialization since it is all processed off the main thread. We still report any exceptions to the user if they would happen to hit some kind of serialization error. Alsotrace_plugin_test.py
has been updated to expect success even when configured with zero time forhttp-max-response-time-ms
andabi-serializer-max-time-ms
.Resolves #1433