Github user joshelser commented on a diff in the pull request:
https://github.com/apache/accumulo/pull/204#discussion_r97355717
--- Diff:
core/src/main/java/org/apache/accumulo/core/client/impl/TableOperationsImpl.java
---
@@ -1209,6 +1209,15 @@ public void online(String tableName) throws
AccumuloSecurityException, AccumuloE
public void online(String tableName, boolean wait) throws
AccumuloSecurityException, AccumuloException, TableNotFoundException {
checkArgument(tableName != null, "tableName is null");
String tableId = Tables.getTableId(context.getInstance(), tableName);
+
+ /**
+ * ACCUMULO-4574 if table is already online return without executing
fate operation.
+ */
+ TableState expectedState = Tables.getTableState(context.getInstance(),
tableId);
--- End diff --
/me lamenting that we don't have a way to do a non-cached read of ZK and
are forced to clear the global cache.
If we push this to the Master, would we have more control over reading from
ZK? An unnecessary RPC but avoiding the client-side zk cache clear would be
well worth it, IMO.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---