HBASE-20699 QuotaCache should cancel the QuotaRefresherChore service inside its stop()

Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
Nihal Jain 2018-06-07 18:42:15 +05:30 committed by tedyu
parent cfeb26d27a
commit 30a052b3e5
1 changed files with 4 additions and 0 deletions

View File

@ -90,6 +90,10 @@ public class QuotaCache implements Stoppable {
@Override
public void stop(final String why) {
if (refreshChore != null) {
LOG.debug("Stopping QuotaRefresherChore chore.");
refreshChore.cancel(true);
}
stopped = true;
}