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

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

Constructor Summary
RetriesExhaustedWithDetailsException(List<Throwable> exceptions, List<Row> actions, List<HServerAddress> addresses)
           
 
Method Summary
static Map<String,Integer> classifyExs(List<Throwable> ths)
           
 HServerAddress getAddress(int i)
           
 Throwable getCause(int i)
           
 List<Throwable> getCauses()
           
static String getDesc(List<Throwable> exceptions, List<Row> actions, List<HServerAddress> addresses)
           
static String getDesc(Map<String,Integer> classificaton)
           
 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<HServerAddress> addresses)
Method Detail

getCauses

public List<Throwable> getCauses()

getNumExceptions

public int getNumExceptions()

getCause

public Throwable getCause(int i)

getRow

public Row getRow(int i)

getAddress

public HServerAddress getAddress(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<HServerAddress> addresses)

classifyExs

public static Map<String,Integer> classifyExs(List<Throwable> ths)

getDesc

public static String getDesc(Map<String,Integer> classificaton)


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.