You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ps...@apache.org on 2019/03/25 19:07:18 UTC
[hbase] branch branch-2 updated: HBASE-21619. Fix warning message
caused by incorrect ternary operator evaluation
This is an automated email from the ASF dual-hosted git repository.
psomogyi pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new d8d8dcf HBASE-21619. Fix warning message caused by incorrect ternary operator evaluation
d8d8dcf is described below
commit d8d8dcf5fea3f24af774bc7cd7bcc4531da8ff27
Author: Wei-Chiu Chuang <we...@cloudera.com>
AuthorDate: Mon Mar 25 19:58:12 2019 +0100
HBASE-21619. Fix warning message caused by incorrect ternary operator evaluation
Signed-off-by: Peter Somogyi <ps...@apache.org>
---
.../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 314f2cb..dcb9ee5 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
@@ -331,10 +331,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();