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
Get rid of dual mutex in blockchain.go #1099
Get rid of dual mutex in blockchain.go #1099
Conversation
@hqjang-pepper Could you please check why the test cases are failed. |
Following check-fails are not directly from this PR changes. |
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.
LGTM, however, have you found the root cause of timeout issue on CircleCI test?
I missed removing mutex at |
@hqjang-pepper If so, why didn't it make any problem on the local test? Due to timing issue? |
@ehnuje Sorry for late response. |
@hqjang-pepper It requires heavy testing especially changing calling locations of locks. How did you conduct testing? |
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.
I conducted load test on two version, before/after mutex integration.
As a result of sending enough requests(more than 1m), the TPS difference between the two versions was 1~10.
It's not that big difference, so we decided to merge this PR.
Proposed changes
chainmu
in blockchain.go.Related Ethereum PR : https://github.com/ethereum/go-ethereum/pull/18436/files
Types of changes
Please put an x in the boxes related to your change.
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.
$ make test
)Related issues
Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...