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 858eee20ec
commit 4a5fe54d94
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;
}