You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Yu Li (JIRA)" <ji...@apache.org> on 2016/04/26 16:54:12 UTC

[jira] [Updated] (HBASE-15710) Include issue servers information in RetriesExhaustedWithDetailsException message

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

Yu Li updated HBASE-15710:
--------------------------
    Attachment: HBASE-15710.patch

The straight forward patch

> Include issue servers information in RetriesExhaustedWithDetailsException message
> ---------------------------------------------------------------------------------
>
>                 Key: HBASE-15710
>                 URL: https://issues.apache.org/jira/browse/HBASE-15710
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Yu Li
>            Assignee: Yu Li
>            Priority: Minor
>         Attachments: HBASE-15710.patch
>
>
> In current {{RetriesExhaustedWithDetailsException#getDesc}}, we have constructed a StringBuilder to add information of issue servers but returned the wrong string:
> {code}
>   public static String getDesc(List<Throwable> exceptions,
>                                List<? extends Row> actions,
>                                List<String> hostnamePort) {
>     String s = getDesc(classifyExs(exceptions));
>     StringBuilder addrs = new StringBuilder(s);
>     addrs.append("servers with issues: ");
>     Set<String> uniqAddr = new HashSet<String>();
>     uniqAddr.addAll(hostnamePort);
>     for(String addr : uniqAddr) {
>       addrs.append(addr).append(", ");
>     }
>     return s;
>   }
> {code} 



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