HBASE-24856 Fix error prone error in FlushTableSubprocedure (#2242)

Signed-off-by: Viraj Jasani <vjasani@apache.org>
Signed-off-by: Jan Hentschel <jan.hentschel@ultratendency.com>
This commit is contained in:
Duo Zhang 2020-08-12 09:51:12 +08:00 committed by GitHub
parent d2afda309d
commit a535c7b1af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@
package org.apache.hadoop.hbase.procedure.flush;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Callable;
@ -102,7 +103,7 @@ public class FlushTableSubprocedure extends Subprocedure {
List<byte[]> families = null;
if (family != null) {
LOG.debug("About to flush family {} on all regions for table {}", family, table);
families = Arrays.asList(Bytes.toBytes(family));
families = Collections.singletonList(Bytes.toBytes(family));
}
// Add all hfiles already existing in region.
for (HRegion region : regions) {