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
HDDS-4232. Use single thread for KeyDeletingService. #1415
Conversation
@@ -66,9 +66,6 @@ | |||
private static final Logger LOG = | |||
LoggerFactory.getLogger(KeyDeletingService.class); | |||
|
|||
// The thread pool size for key deleting service. | |||
private final static int KEY_DELETING_CORE_POOL_SIZE = 2; |
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.
why not just change 2 to 1?
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.
Addressed it in latest commit.
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.
Thanks!
Hi @lokeshj1703 Do you think, we need this change still even after this also for openKeyCleanup? |
/pending |
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.
Marking this issue as un-mergeable as requested.
Please use /ready
comment when it's resolved.
Please note that the PR will be closed after 21 days of inactivity from now. (But can be re-opened anytime later...)
The PR requires change in 1414 to address the test failure. |
@bharatviswa504 Thanks for providing the info! In that case we do not need the changes for openKeyCleanupService. I have addressed it in latest commit. |
/ready |
Blocking review request is removed.
0283116
to
c140c38
Compare
Thanks @lokeshj1703 for the fix and @amaliujia and @bharatviswa504 for the review. |
What changes were proposed in this pull request?
KeyDeletingService scan the keys from a particular rocksdb table and sends deletion request to SCM. Every thread would scan the table and send deletion requests. This can lead to multiple deletion request for a particular block. There is currently no way to distribute the keys to be deleted amongst multiple threads.
What is the link to the Apache JIRA
HDDS-4232
How was this patch tested?
This lead to failure in TestBlockDeletion. Please refer 49b610a