You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "keith-turner (via GitHub)" <gi...@apache.org> on 2026/01/14 19:44:12 UTC

[PR] log exception on failure set table prop [accumulo]

keith-turner opened a new pull request, #6057:
URL: https://github.com/apache/accumulo/pull/6057

   (no comment)


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] log exception on failure set table prop [accumulo]

Posted by "ddanielr (via GitHub)" <gi...@apache.org>.
ddanielr commented on code in PR #6057:
URL: https://github.com/apache/accumulo/pull/6057#discussion_r2691865477


##########
server/manager/src/main/java/org/apache/accumulo/manager/ManagerClientServiceHandler.java:
##########
@@ -581,8 +581,8 @@ private void alterTableProperty(TCredentials c, String tableName, String propert
             Map.of(property, value));
       }
     } catch (IllegalStateException ex) {
-      log.warn("Invalid table property, tried to set: tableId: " + tableId.canonical() + " to: "

Review Comment:
   Line 574 can also return an IllegalStateException 
   ```
   PropUtil.removeProperties(manager.getContext(),
               TablePropKey.of(manager.getContext(), tableId), List.of(property));
   ```
   This log message should include the table OP instead of assuming it's always a `set` opt.



-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] log exception on failure set table prop [accumulo]

Posted by "keith-turner (via GitHub)" <gi...@apache.org>.
keith-turner commented on PR #6057:
URL: https://github.com/apache/accumulo/pull/6057#issuecomment-3751379651

   Looked at the other code in ManagerClientServiceHandler that handles setting system,namespace, and table props and those all seems to log exceptions.


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] log exception on failure set table prop [accumulo]

Posted by "keith-turner (via GitHub)" <gi...@apache.org>.
keith-turner commented on code in PR #6057:
URL: https://github.com/apache/accumulo/pull/6057#discussion_r2691880040


##########
server/manager/src/main/java/org/apache/accumulo/manager/ManagerClientServiceHandler.java:
##########
@@ -581,8 +581,8 @@ private void alterTableProperty(TCredentials c, String tableName, String propert
             Map.of(property, value));
       }
     } catch (IllegalStateException ex) {
-      log.warn("Invalid table property, tried to set: tableId: " + tableId.canonical() + " to: "

Review Comment:
   Updated in 5480b83



-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] log exception on failure set table prop [accumulo]

Posted by "keith-turner (via GitHub)" <gi...@apache.org>.
keith-turner commented on code in PR #6057:
URL: https://github.com/apache/accumulo/pull/6057#discussion_r2691885142


##########
server/manager/src/main/java/org/apache/accumulo/manager/ManagerClientServiceHandler.java:
##########
@@ -579,10 +579,12 @@ private void alterTableProperty(TCredentials c, String tableName, String propert
         }
         PropUtil.setProperties(manager.getContext(), TablePropKey.of(manager.getContext(), tableId),
             Map.of(property, value));
+      } else {
+        throw new UnsupportedOperationException("table operation:" + op.name());

Review Comment:
   Currently the client code is only calling the RPC w/ the two values.  However this server side code should not ignore seeing something else. This new throw should cause an error to be logged and TApplicationException on the client side should this ever happen.



-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] log exception on failure set table prop [accumulo]

Posted by "keith-turner (via GitHub)" <gi...@apache.org>.
keith-turner merged PR #6057:
URL: https://github.com/apache/accumulo/pull/6057


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org