[ 
https://issues.apache.org/jira/browse/HBASE-16409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Purtell reopened HBASE-16409:
------------------------------------

{code}
@@ -80,6 +80,7 @@ public class VerifyReplication extends Configured implements 
Tool {
   static int versions = -1;
   static String tableName = null;
   static String families = null;
+  static String delimiter = null;
   static String peerId = null;
   static String rowPrefixes = null;
 
@@ -185,7 +186,8 @@ public class VerifyReplication extends Configured 
implements Tool {
     private void logFailRowAndIncreaseCounter(Context context, Counters 
counter, Result row) {
       context.getCounter(counter).increment(1);
       context.getCounter(Counters.BADROWS).increment(1);
-      LOG.error(counter.toString() + ", rowkey=" + 
Bytes.toString(row.getRow()));
+      LOG.error(counter.toString() + ", rowkey=" + delimiter + 
Bytes.toString(row.getRow()) +
+          delimiter);
     }
 
     @Override
{code}

Does this mean unless a delimiter is set it will be printed as the string 
"null"?

> Row key for bad row should be properly delimited in VerifyReplication
> ---------------------------------------------------------------------
>
>                 Key: HBASE-16409
>                 URL: https://issues.apache.org/jira/browse/HBASE-16409
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>            Priority: Minor
>              Labels: replication
>             Fix For: 2.0.0, 1.4.0
>
>         Attachments: 16409.v1.txt, 16409.v2.txt
>
>
> In logFailRowAndIncreaseCounter():
> {code}
>       LOG.error(counter.toString() + ", rowkey=" + 
> Bytes.toString(row.getRow()));
> {code}
> In some cases, the row key has trailing whitespace(s).
> The whitespace wouldn't be easily observable in the above log.
> A delimiter should be put toward the end of the log line.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to