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

Split read and write orderExecutor #3003

Open
315157973 opened this issue Jan 20, 2022 · 2 comments · May be fixed by #3062
Open

Split read and write orderExecutor #3003

315157973 opened this issue Jan 20, 2022 · 2 comments · May be fixed by #3062
Labels

Comments

@315157973
Copy link

315157973 commented Jan 20, 2022

BUG REPORT

Describe the bug

Now the read and write of BookkeeperClient share the same orderExecutor. When cold data is read, it will take a long time. At this time, the read request will be blocked, resulting in the write timeout.

Expected behavior
Thread pools for reading and writing should be separated

@dlg99
Copy link
Contributor

dlg99 commented Feb 14, 2022

This is done on purpose for writable ledgers.
Read-only ledgers (cold data) don't use OSE. Please take a look at #1792 / #1791

@315157973
Copy link
Author

315157973 commented Feb 15, 2022

This is done on purpose for writable ledgers. Read-only ledgers (cold data) don't use OSE. Please take a look at #1792 / #1791

Thank you very much for your reply.
When the Ledger is in the Writable state, can we guarantee that the data is not read from disk?
As long as data is read from the disk, when there are many read requests, the read affects the write, resulting in a write timeout

@315157973 315157973 linked a pull request Feb 17, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants