ddanielr commented on code in PR #3146:
URL: https://github.com/apache/accumulo/pull/3146#discussion_r1088691250
##########
shell/src/main/java/org/apache/accumulo/shell/commands/ConfigCommand.java:
##########
@@ -353,6 +344,31 @@ public int execute(final String fullCommand, final
CommandLine cl, final Shell s
return 0;
}
+ private void validatePropertyType(String property, String value, String
fullCommand,
+ String tableName) throws BadArgumentException {
+ if (tableName != null) {
+ if (!Property.isValidTablePropertyKey(property)) {
+ throw new BadArgumentException("Invalid per-table property: " +
property, fullCommand,
+ fullCommand.indexOf(property));
+ }
+ }
+ if (!Property.isValidZooPropertyKey(property)) {
Review Comment:
Makes sense to me, I'll move the code up.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]