HBASE-21619. Fix warning message caused by incorrect ternary operator evaluation

Signed-off-by: Peter Somogyi <psomogyi@apache.org>
This commit is contained in:
Wei-Chiu Chuang 2019-03-25 19:58:12 +01:00 committed by Peter Somogyi
parent 6de8a37b63
commit 5e1e0ca810
1 changed files with 3 additions and 4 deletions

View File

@ -330,10 +330,9 @@ public class LoadIncrementalHFiles extends Configured implements Tool {
if (queue.isEmpty()) {
LOG.warn(
"Bulk load operation did not find any files to load in " + "directory " + hfofDir != null
? hfofDir.toUri().toString()
: "" + ". Does it contain files in " +
"subdirectories that correspond to column family names?");
"Bulk load operation did not find any files to load in directory {}. " +
"Does it contain files in subdirectories that correspond to column family names?",
(hfofDir != null ? hfofDir.toUri().toString() : ""));
return Collections.emptyMap();
}
pool = createExecutorService();