HBASE-20699 QuotaCache should cancel the QuotaRefresherChore service inside its stop()
Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
parent
cfeb26d27a
commit
30a052b3e5
|
@ -90,6 +90,10 @@ public class QuotaCache implements Stoppable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void stop(final String why) {
|
public void stop(final String why) {
|
||||||
|
if (refreshChore != null) {
|
||||||
|
LOG.debug("Stopping QuotaRefresherChore chore.");
|
||||||
|
refreshChore.cancel(true);
|
||||||
|
}
|
||||||
stopped = true;
|
stopped = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue