Skip to content
Merged
Changes from all 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.debug(
"The configuration {} has been set to an invalid value {}, "
+ "the previous value {} will be used, no need to update.",
OLD_WALS_CLEANER_THREAD_SIZE, newSize, oldWALsCleaner.size());
return;
}
if (newSize == oldWALsCleaner.size()) {
LOG.debug(
"Size from configuration is the same as previous which " + "is {}, no need to update.",
Expand Down