You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2019/06/03 17:47:33 UTC
[GitHub] [accumulo] keith-turner commented on issue #418: Add
createIfNotExists method to table/namespace operations
keith-turner commented on issue #418: Add createIfNotExists method to table/namespace operations
URL: https://github.com/apache/accumulo/issues/418#issuecomment-498357693
@hkeebler I think a good way to handle this issue would be to add javadoc to the create table method suggesting the following as a concurrent safe way to ignore tables that exists.
```java
try {
connector.tableOperations().create("mynamespace.mytable");
} catch (TableExistsException e) {
// ignore
}
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services