-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Revert json ops #2814
Revert json ops #2814
Conversation
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.
Rubberstamp LGTM
@ry @piscisaureus I believe I figured out the cause of the problem, why it wasn't caught in the test and how to solve it. Cause The error specified below appears when there's a response for "minimal op" and
This situation happens when there's a "json op" that pushes response onto shared queue and is subsequently followed by response of minimal op. That happens because Tests The tests did not catch that bug because it requires high concurrency - in unit test suite there are concurrent tests for Possible solution The easiest solution that comes to mind is to ensure that response buffer from "json op" is aligned to 4-bytes. Additionally I believe that there should be a check in EDIT: Proof-of-concept solution 7b9d07f |
This reverts commit 2235dd7.
@bartlomieju thank you for that analysis - it sounds very likely that you’ve figured it out! We should add a unit test to shared_queue.rs that demos pushing some non-aligned buffers. |
We're experiencing odd benchmarks and errors as a result of the recent ops moving to JSON. They're odd because node and hyper benchmarks are being negatively effected along with deno.
It's disconcerting that the errors below did not cause the tests to fail.
Errors are seen during the benchmarks:
cc @bartlomieju