Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ protected boolean validate(Path file) {
@Override
public void onConfigurationChange(Configuration conf) {
int newSize = conf.getInt(OLD_WALS_CLEANER_THREAD_SIZE, DEFAULT_OLD_WALS_CLEANER_THREAD_SIZE);
if (newSize <= 0) {
LOG.warn(
Copy link
Contributor

@NihalJain NihalJain Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe just put as debug. also maybe sync with impl at

"The configuration {} has been set to an invalid value {}, "
+ "the default value {} will be used, no need to update.",
OLD_WALS_CLEANER_THREAD_SIZE, newSize, DEFAULT_OLD_WALS_CLEANER_THREAD_SIZE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, wait a minute, here we just return, which means we will keep the old value, not use the default value?

return;
}
if (newSize == oldWALsCleaner.size()) {
LOG.debug(
"Size from configuration is the same as previous which " + "is {}, no need to update.",
Expand Down