Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-15710

Include issue servers information in RetriesExhaustedWithDetailsException message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.3.0, 0.98.20, 2.0.0
    • None
    • None
    • Reviewed

    Description

      In current RetriesExhaustedWithDetailsException#getDesc, we have constructed a StringBuilder to add information of issue servers but returned the wrong string:

        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;
        }
      

      Attachments

        1. HBASE-15710.patch
          0.7 kB
          Yu Li

        Issue Links

          Activity

            People

              liyu Yu Li
              liyu Yu Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: