for (int n = 0; n < numErrors; n++) { System.out.println("Cause[" + n + "]: " + e.getCause(n)); System.out.println("Hostname[" + n + "]: " + e.getHostnamePort(n)); System.out.println("Row[" + n + "]: " + e.getRow(n)); // co PutListErrorExample3-3-ErrorPut Gain access to the failed operation.
public HServerAddress getAddress(int i) { return new HServerAddress(Addressing.createInetSocketAddressFromHostAndPortStr(getHostnamePort(i))); }
MDC.put("mayHaveClusterIssues", String.valueOf(details.mayHaveClusterIssues())); for (int i = 0; i < details.getNumExceptions(); ++i) { MDC.put("host name port", details.getHostnamePort(i)); MDC.put("row", BaseEncoding.base64().encode(details.getRow(i).getRow())); log.error(String.format("error %s", i), details.getCause(i));