org.apache.hadoop.hbase.client
Class RetriesExhaustedWithDetailsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.apache.hadoop.hbase.client.RetriesExhaustedException
                  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.client.RetriesExhaustedException
RetriesExhaustedException.ThrowableWithExtraContext
 
Constructor Summary
RetriesExhaustedWithDetailsException(List<Throwable> exceptions, List<Row> actions, List<String> hostnameAndPort)
           
 
Method Summary
static Map<String,Integer> classifyExs(List<Throwable> ths)
           
 Throwable getCause(int i)
           
 List<Throwable> getCauses()
           
static String getDesc(List<Throwable> exceptions, List<Row> actions, List<String> hostnamePort)
           
static String getDesc(Map<String,Integer> classificaton)
           
 String getExhaustiveDescription()
           
 String getHostnamePort(int i)
           
 int getNumExceptions()
           
 Row getRow(int i)
           
 boolean mayHaveClusterIssues()
           
static String pluralize(Collection<?> c)
           
static String pluralize(int c)
           
 
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
 

Constructor Detail

RetriesExhaustedWithDetailsException

public RetriesExhaustedWithDetailsException(List<Throwable> exceptions,
                                            List<Row> actions,
                                            List<String> hostnameAndPort)
Method Detail

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.