HBASE-26524 Addendum fix TestConstraints (#3912)

This commit is contained in:
Tak Lon (Stephen) Wu 2021-12-02 12:55:41 -08:00 committed by GitHub
parent 19b0b2e8fc
commit 6d28bc6dd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,12 @@ public final class Constraints {
* added.
*/
public static TableDescriptorBuilder disable(TableDescriptorBuilder builder) throws IOException {
return builder.removeCoprocessor(ConstraintProcessor.class.getName());
try {
return builder.removeCoprocessor(ConstraintProcessor.class.getName());
} catch (IllegalArgumentException e) {
LOG.warn("ConstraintProcessor was unset.", e);
return builder;
}
}
/**