Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ public static long getMaxLookbackInMillis(Configuration conf) {
*/
public static final String CUSTOM_ANNOTATIONS = "_Annot";

/** Exposed for testing */
public static final String SCANNER_OPENED_TRACE_INFO = "Scanner opened on server";
/** Exposed for testing */
public static final String SCANNER_OPENED_TRACE_INFO = "Scanner opened on server";

/**
* Attribute name used to pass HAGroupName in Mutations.
*/
public static final String HA_GROUP_NAME_ATTRIB = "_HAGroupName";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.phoenix.exception;

/**
* Exception thrown when attempting an invalid cluster role transition.
*/
public class InvalidClusterRoleTransitionException extends Exception {
private static final long serialVersionUID = 1L;

/**
* @param msg reason for the exception
*/
public InvalidClusterRoleTransitionException(String msg) {
super(msg);
}

/**
* @param msg reason for the exception
* @param cause the underlying cause
*/
public InvalidClusterRoleTransitionException(String msg, Throwable cause) {
super(msg, cause);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ public class MutationBlockedIOException extends IOException {
public MutationBlockedIOException(String msg) {
super(msg);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.phoenix.exception;

/**
* Exception thrown when attempting to update HAGroupStoreRecord with a stale ZK stat version,
* indicating that the record has been modified by another process.
*/
public class StaleHAGroupStoreRecordVersionException extends Exception {
private static final long serialVersionUID = 1L;

/**
* @param msg reason for the exception
*/
public StaleHAGroupStoreRecordVersionException(String msg) {
super(msg);
}

/**
* @param msg reason for the exception
* @param cause the underlying cause
*/
public StaleHAGroupStoreRecordVersionException(String msg, Throwable cause) {
super(msg, cause);
}

}
Loading