HBASE-15608 Remove PB references from SnapShot related Exceptions (Ram)
This commit is contained in:
parent
09d451b1db
commit
b9df7978fc
|
@ -1526,6 +1526,7 @@ public interface Admin extends Abortable, Closeable {
|
|||
* */
|
||||
void releaseSplitOrMergeLockAndRollback() throws IOException;
|
||||
|
||||
@Deprecated
|
||||
@InterfaceAudience.Public
|
||||
@InterfaceStability.Evolving
|
||||
public enum MasterSwitchType {
|
||||
|
|
|
@ -43,6 +43,7 @@ public class CorruptedSnapshotException extends HBaseSnapshotException {
|
|||
* @param message full description of the failure
|
||||
* @param snapshot snapshot that was expected
|
||||
*/
|
||||
@Deprecated
|
||||
public CorruptedSnapshotException(String message, SnapshotDescription snapshot) {
|
||||
super(message, snapshot);
|
||||
}
|
||||
|
|
|
@ -45,6 +45,7 @@ public class HBaseSnapshotException extends DoNotRetryIOException {
|
|||
* @param msg reason why the snapshot failed
|
||||
* @param desc description of the snapshot that is being failed
|
||||
*/
|
||||
@Deprecated
|
||||
public HBaseSnapshotException(String msg, SnapshotDescription desc) {
|
||||
super(msg);
|
||||
this.description = desc;
|
||||
|
@ -56,6 +57,7 @@ public class HBaseSnapshotException extends DoNotRetryIOException {
|
|||
* @param cause root cause of the failure
|
||||
* @param desc description of the snapshot that is being failed
|
||||
*/
|
||||
@Deprecated
|
||||
public HBaseSnapshotException(String msg, Throwable cause, SnapshotDescription desc) {
|
||||
super(msg, cause);
|
||||
this.description = desc;
|
||||
|
@ -71,6 +73,7 @@ public class HBaseSnapshotException extends DoNotRetryIOException {
|
|||
super(message, e);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public SnapshotDescription getSnapshotDescription() {
|
||||
return this.description;
|
||||
}
|
||||
|
|
|
@ -29,10 +29,12 @@ import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescriptio
|
|||
@InterfaceAudience.Public
|
||||
@InterfaceStability.Evolving
|
||||
public class RestoreSnapshotException extends HBaseSnapshotException {
|
||||
@Deprecated
|
||||
public RestoreSnapshotException(String msg, SnapshotDescription desc) {
|
||||
super(msg, desc);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public RestoreSnapshotException(String msg, Throwable cause, SnapshotDescription desc) {
|
||||
super(msg, cause, desc);
|
||||
}
|
||||
|
|
|
@ -53,6 +53,7 @@ public class SnapshotCreationException extends HBaseSnapshotException {
|
|||
* @param cause root cause of the failure
|
||||
* @param desc description of the snapshot attempted
|
||||
*/
|
||||
@Deprecated
|
||||
public SnapshotCreationException(String msg, Throwable cause, SnapshotDescription desc) {
|
||||
super(msg, cause, desc);
|
||||
}
|
||||
|
|
|
@ -39,6 +39,7 @@ public class SnapshotDoesNotExistException extends HBaseSnapshotException {
|
|||
/**
|
||||
* @param desc expected snapshot to find
|
||||
*/
|
||||
@Deprecated
|
||||
public SnapshotDoesNotExistException(SnapshotDescription desc) {
|
||||
super("Snapshot '" + desc.getName() +"' doesn't exist on the filesystem", desc);
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ public class SnapshotExistsException extends HBaseSnapshotException {
|
|||
* @param msg full description of the failure
|
||||
* @param desc snapshot that was attempted
|
||||
*/
|
||||
@Deprecated
|
||||
public SnapshotExistsException(String msg, SnapshotDescription desc) {
|
||||
super(msg, desc);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue