From 01f8e1eaa336ecbb700f4b095fd4d37c2a38cf14 Mon Sep 17 00:00:00 2001 From: Ankit Singhal Date: Wed, 10 Apr 2019 12:58:32 -0400 Subject: [PATCH] HBASE-22106 Better log message when failing to load coprocessor Signed-off-by: Josh Elser --- .../hadoop/hbase/regionserver/RegionCoprocessorHost.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionCoprocessorHost.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionCoprocessorHost.java index f29397d6b1e..33786360560 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionCoprocessorHost.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionCoprocessorHost.java @@ -284,8 +284,8 @@ public class RegionCoprocessorHost null : new Path(matcher.group(1).trim()); String className = matcher.group(2).trim(); if (className.isEmpty()) { - LOG.error("Malformed table coprocessor specification: key=" + - key + ", spec: " + spec); + LOG.error("Malformed table coprocessor specification, Class name is empty: key=" + key + + ", spec: " + spec); continue; } int priority = matcher.group(3).trim().isEmpty() ? @@ -315,8 +315,8 @@ public class RegionCoprocessorHost ", spec: " + spec); } } catch (Exception ioe) { - LOG.error("Malformed table coprocessor specification: key=" + key + - ", spec: " + spec); + LOG.error("Malformed table coprocessor specification: key=" + key + ", spec: " + spec, + ioe); } } }