dlmarion commented on code in PR #5510:
URL: https://github.com/apache/accumulo/pull/5510#discussion_r2064242195
##########
core/src/main/java/org/apache/accumulo/core/clientImpl/TableOperationsImpl.java:
##########
@@ -2243,7 +2241,6 @@ private void validatePropertiesToSet(Map<String,String>
opts, Map<String,String>
public void setTabletAvailability(String tableName, Range range,
TabletAvailability availability)
throws AccumuloSecurityException, AccumuloException {
EXISTING_TABLE_NAME.validate(tableName);
- NOT_BUILTIN_TABLE.validate(tableName);
Review Comment:
So, maybe a compromise would be to remove `NOT_BUILTIN_TABLE`, but add:
```
if (SystemTables.tableNames().contains(tableName) {
throw new AccumuloException("Cannot set table availability on a system
table");
}
```
This is similar to what is happening
[here](https://github.com/apache/accumulo/blob/main/core/src/main/java/org/apache/accumulo/core/clientImpl/TableOperationsImpl.java#L1514-L1517)
--
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]