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:
- Serializable
@InterfaceAudience.Public
@InterfaceStability.Stable
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 getHostnamePort(int)
.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
RetriesExhaustedWithDetailsException
public RetriesExhaustedWithDetailsException(List<Throwable> exceptions,
List<Row> actions,
List<String> hostnameAndPort)
getCauses
public List<Throwable> getCauses()
getNumExceptions
public int getNumExceptions()
getCause
public Throwable getCause(int i)
getRow
public Row getRow(int i)
getHostnamePort
public String getHostnamePort(int i)
mayHaveClusterIssues
public boolean mayHaveClusterIssues()
pluralize
public static String pluralize(Collection<?> c)
pluralize
public static String pluralize(int c)
getDesc
public static String getDesc(List<Throwable> exceptions,
List<Row> actions,
List<String> hostnamePort)
getExhaustiveDescription
public String getExhaustiveDescription()
classifyExs
public static Map<String,Integer> classifyExs(List<Throwable> ths)
getDesc
public static String getDesc(Map<String,Integer> classificaton)
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.