-
Notifications
You must be signed in to change notification settings - Fork 27
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
[3.2] Backporting state history plugin improvements and fixes #340
Conversation
…ndation/mandel into state-history-improvements
The original PR adding ship unix socket support included adding unit test support for it. It seems like that might be something worthwhile keeping in at least one of the ship tests. |
Added and it fails lol Debugging it now... |
Looks like ship_client needs to support unix sockets for this test to work, This is added as a separate issue: currently there is a workaround to make UT passable in ship_client, that makes it switch to ws communication when unix+ws requested. This will be removed upon 508 resolution |
Proper unix_socket support implemented for ship_client, since it is closely connected to this issue, it is committed in this PR |
…into state-history-improvements
@@ -119,9 +132,37 @@ class state_history_log { | |||
vacuum(); | |||
} | |||
} | |||
|
|||
thr = std::thread([this] { |
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.
An eosio::chain::named_thread_pool
(even with a size of 1) may allow you to remove some of this boilerplate. Not critical, judgement up to you, just pointing it out.
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.
eh the whole write_thread_has_exception
thing may torpedo that, dunno. Still worth thinking over.
This PR is mainly targeting performance improvements with addition of threading support plus Unix socket support. A separate Issues / PR's for other backports that would be considered valuable will be created.
Backported in this PR: