HBASE-15319 clearJmxCache does not take effect actually

This commit is contained in:
Elliott Clark 2016-02-24 09:02:06 -08:00
parent 630a65825e
commit a3b4575f70
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ public class JmxCacheBuster {
public static void clearJmxCache() {
//If there are more then 100 ms before the executor will run then everything should be merged.
ScheduledFuture future = fut.get();
if ((future == null || (!future.isDone() && future.getDelay(TimeUnit.MILLISECONDS) > 100))) {
if ((future != null && (!future.isDone() && future.getDelay(TimeUnit.MILLISECONDS) > 100))) {
// BAIL OUT
return;
}