Skip to content

Commit

Permalink
HBASE-26524 Addendum fix TestConstraints (#3912)
Browse files Browse the repository at this point in the history
  • Loading branch information
taklwu authored Dec 2, 2021
1 parent 19b0b2e commit 6d28bc6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ public static TableDescriptorBuilder enable(TableDescriptorBuilder builder) thro
* 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;
}
}

/**
Expand Down

0 comments on commit 6d28bc6

Please sign in to comment.