From be1365ec6a53e8c9229fd37b87fd9d9526af6033 Mon Sep 17 00:00:00 2001 From: Wei-Chiu Chuang Date: Wed, 19 Dec 2018 07:12:51 -0800 Subject: [PATCH] HBASE-21619. Fix warning message caused by incorrect ternary operator evaluation Change-Id: I7be7474040cac86f38316340e9a0c370faaace44 --- .../java/org/apache/hadoop/hbase/tool/LoadIncrementalHFiles.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/LoadIncrementalHFiles.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/LoadIncrementalHFiles.java index 3320b1f..4f0b132 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/LoadIncrementalHFiles.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/LoadIncrementalHFiles.java @@ -332,10 +332,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(); -- 2.5.3