Repository navigation
Fix a potential bug scheduling unnecessary threads - #6104
riversand963 wants to merge 2 commits into
Conversation
Summary: RocksDB should decrement the counter `unscheduled_flushes_` as soon as the bg thread is scheduled. Before this fix, the counter is decremented only when the bg thread starts and picks an element from the flush queue. This may cause more than necessary bg threads to be scheduled. Not a correctness issue, but may affect flush thread count. Test Plan: ``` make check ```
facebook-github-bot
left a comment
There was a problem hiding this comment.
@riversand963 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
siying
left a comment
There was a problem hiding this comment.
Do you remember why it was moved in the first place?
@siying |
|
@riversand963 merged this pull request in 09fcf4f. |
Summary: RocksDB should decrement the counter `unscheduled_flushes_` as soon as the bg thread is scheduled. Before this fix, the counter is decremented only when the bg thread starts and picks an element from the flush queue. This may cause more than necessary bg threads to be scheduled. Not a correctness issue, but may affect flush thread count. Pull Request resolved: meta#6104 Test Plan: ``` make check ``` Differential Revision: D18735584 Pulled By: riversand963 fbshipit-source-id: d36272d4a08a494aeeab6200a3cff7a3d1a2dc10
this fix is due to meta#6104. unscheduled_flushes_ was not handled well in the current version (v6.1.2.) This leads flush_scheduled_ flags to be always full. author : Junhan
this fix is due to facebook#6104. unscheduled_flushes_ was not handled well in the current version (v6.1.2.) This leads flush_scheduled_ flags to be always full author : Junhan
Summary: RocksDB should decrement the counter `unscheduled_flushes_` as soon as the bg thread is scheduled. Before this fix, the counter is decremented only when the bg thread starts and picks an element from the flush queue. This may cause more than necessary bg threads to be scheduled. Not a correctness issue, but may affect flush thread count. Pull Request resolved: meta#6104 Test Plan: ``` make check ``` Differential Revision: D18735584 Pulled By: riversand963 fbshipit-source-id: d36272d4a08a494aeeab6200a3cff7a3d1a2dc10
Summary:
RocksDB should decrement the counter
unscheduled_flushes_as soon as the bgthread is scheduled. Before this fix, the counter is decremented only when the
bg thread starts and picks an element from the flush queue. This may cause more
than necessary bg threads to be scheduled. Not a correctness issue, but may
affect flush thread count.
Test Plan: