Package org.apache.hadoop.hbase
Class ReadOnlyTransitionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.hbase.HBaseIOException
org.apache.hadoop.hbase.DoNotRetryIOException
org.apache.hadoop.hbase.ReadOnlyTransitionException
- All Implemented Interfaces:
Serializable
Thrown when a replica cluster attempts to disable read-only mode while another active cluster
already exists on the same storage location.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReadOnlyTransitionException(String message) ReadOnlyTransitionException(String message, String activeClusterId) ReadOnlyTransitionException(String message, Throwable throwable) ReadOnlyTransitionException(Throwable throwable) -
Method Summary
Modifier and TypeMethodDescriptionReturns the ID of the cluster that is currently active, or null if unknownMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
- See Also:
-
activeClusterId
-
-
Constructor Details
-
ReadOnlyTransitionException
public ReadOnlyTransitionException() -
ReadOnlyTransitionException
- Parameters:
message- the message for this exception
-
ReadOnlyTransitionException
- Parameters:
message- the message for this exceptionactiveClusterId- the ID of the cluster that is currently active
-
ReadOnlyTransitionException
- Parameters:
message- the message for this exceptionthrowable- theThrowableto use for this exception
-
ReadOnlyTransitionException
- Parameters:
throwable- theThrowableto use for this exception
-
-
Method Details
-
getActiveClusterId
Returns the ID of the cluster that is currently active, or null if unknown -
getMessage
- Overrides:
getMessagein classThrowable
-