org.apache.hadoop.hbase.client
Class RetriesExhaustedWithDetailsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.hbase.client.RetriesExhaustedException
org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException
- All Implemented Interfaces:
- java.io.Serializable
public class RetriesExhaustedWithDetailsException
- extends RetriesExhaustedException
This subclass of RetriesExhaustedException
is thrown when we have more information about which rows were causing which
exceptions on what servers. You can call mayHaveClusterIssues()
and if the result is false, you have input error problems, otherwise you
may have cluster issues. You can iterate over the causes, rows and last
known server addresses via getNumExceptions() and
getCause(int), getRow(int) and getAddress(int).
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RetriesExhaustedWithDetailsException
public RetriesExhaustedWithDetailsException(java.util.List<java.lang.Throwable> exceptions,
java.util.List<Row> actions,
java.util.List<HServerAddress> addresses)
getCauses
public java.util.List<java.lang.Throwable> getCauses()
getNumExceptions
public int getNumExceptions()
getCause
public java.lang.Throwable getCause(int i)
getRow
public Row getRow(int i)
getAddress
public HServerAddress getAddress(int i)
mayHaveClusterIssues
public boolean mayHaveClusterIssues()
pluralize
public static java.lang.String pluralize(java.util.Collection<?> c)
pluralize
public static java.lang.String pluralize(int c)
getDesc
public static java.lang.String getDesc(java.util.List<java.lang.Throwable> exceptions,
java.util.List<Row> actions,
java.util.List<HServerAddress> addresses)
classifyExs
public static java.util.Map<java.lang.String,java.lang.Integer> classifyExs(java.util.List<java.lang.Throwable> ths)
getDesc
public static java.lang.String getDesc(java.util.Map<java.lang.String,java.lang.Integer> classificaton)
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.