You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2021/01/06 19:17:03 UTC
[GitHub] [iceberg] cccs-jc edited a comment on pull request #1979: Support for role based access of HadoopCatalog table listing #1941
cccs-jc edited a comment on pull request #1979:
URL: https://github.com/apache/iceberg/pull/1979#issuecomment-755543018
I've checked everywhere the following methods are used
isTableDir
isDirectory
isNamespace
In all cases I can see it makes sense to not throw the exception since these are tests. For example
```
createNamespace()
if isNamespace
throw AlreadyExistsException
if it does not exists it will try to create it.
if a user for some reason can't list the dir it will return false and
proceed to try to create it, at that point it will fail with a IOException
showing why (could be restricted access or any other reason)
listNamespaces()
if not isNamespace
throws NoSuchNamespaceException
then proceeds to list the namespaces under that location, so like listTables it might be a partial list
dropNamespace()
if can't access it will consider it does not exists and return false (not dropped)
loadNamespaceMetadata()
again if can't access namespace a NoSuchNamespaceException is returned
```
Nonetheless I will add checks for determining if the exception is an azure blob exception.
----------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org