HBASE-24808 skip empty log cleaner delegate class names (WAS => cleaner.CleanerChore: Can NOT create CleanerDelegate= ClassNotFoundException) (#2181)
Signed-off-by: Anoop Sam John <anoopsamjohn@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org> Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
parent
21a0b8ea11
commit
148c185486
|
@ -151,7 +151,11 @@ public abstract class CleanerChore<T extends FileCleanerDelegate> extends Schedu
|
||||||
this.cleanersChain = new LinkedList<>();
|
this.cleanersChain = new LinkedList<>();
|
||||||
String[] logCleaners = conf.getStrings(confKey);
|
String[] logCleaners = conf.getStrings(confKey);
|
||||||
if (logCleaners != null) {
|
if (logCleaners != null) {
|
||||||
for (String className : logCleaners) {
|
for (String className: logCleaners) {
|
||||||
|
className = className.trim();
|
||||||
|
if (className.isEmpty()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
T logCleaner = newFileCleaner(className, conf);
|
T logCleaner = newFileCleaner(className, conf);
|
||||||
if (logCleaner != null) {
|
if (logCleaner != null) {
|
||||||
LOG.info("Initialize cleaner={}", className);
|
LOG.info("Initialize cleaner={}", className);
|
||||||
|
|
Loading…
Reference in New Issue