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

[4.0 -> main] Modify trace_api_plugin to report serialization errors to user #1469

Merged
merged 16 commits into from
Jul 31, 2023

Conversation

heifner
Copy link
Member

@heifner heifner commented Jul 31, 2023

Merges release/4.0 into main 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 for trace_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. Also trace_plugin_test.py has been updated to expect success even when configured with zero time for http-max-response-time-ms and abi-serializer-max-time-ms.

Resolves #1433

@heifner heifner added the OCI Work exclusive to OCI team label Jul 31, 2023
@heifner heifner requested review from greg7mdp and dimas1185 July 31, 2023 11:58
@heifner heifner marked this pull request as draft July 31, 2023 12:26
Comment on lines 101 to 102
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"})
Copy link
Contributor

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?

Copy link
Member Author

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.

@heifner heifner marked this pull request as ready for review July 31, 2023 14:17
# 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# get_transaction_trace with valid parameter
# get_transaction_trace with syntactically correct parameter, but random id, so should return 404 (not found)

@heifner heifner merged commit ad26424 into main Jul 31, 2023
@heifner heifner deleted the GH-1433-trace-api-main branch July 31, 2023 20:09
@heifner heifner modified the milestone: Leap v4.0.5 Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

trace_api_plugin reports block trace missing when http-max-response-time-ms limit is reached
3 participants