You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "ChiaPing Tsai (JIRA)" <ji...@apache.org> on 2016/10/29 11:41:58 UTC

[jira] [Created] (HBASE-16969) RegionCoprocessorServiceExec should override the toString for logging

ChiaPing Tsai created HBASE-16969:
-------------------------------------

             Summary: RegionCoprocessorServiceExec should override the toString for logging
                 Key: HBASE-16969
                 URL: https://issues.apache.org/jira/browse/HBASE-16969
             Project: HBase
          Issue Type: Improvement
            Reporter: ChiaPing Tsai
            Priority: Minor


The toString() method is used to log in BatchErrors#makeException.

{code:title=BatchErrors.java|borderStyle=solid}
synchronized RetriesExhaustedWithDetailsException makeException(boolean logDetails) {
  if (logDetails) {LOG.error("Exception occurred! Exception details: " + throwables + ";\nActions: " + actions);
 }
{code}

If RegionCoprocessorServiceExec doesn’t override the toString(), we will see the hash code in the log message. That message is useless for debugging.



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