HBASE-15027 - Findbug fix (addendum)

This commit is contained in:
ramkrishna 2016-01-11 16:50:59 +05:30
parent c2f67a053e
commit 894ce84b83
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,9 @@ public class CompactedHFilesDischarger extends ScheduledChore {
@Override
public void chore() {
// Noop if rss is null. This will never happen in a normal condition except for cases
// when the test case is not spinning up a cluster
if (regionServerServices == null) return;
List<Region> onlineRegions = regionServerServices.getOnlineRegions();
if (onlineRegions != null) {
for (Region region : onlineRegions) {