-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add method to retrieve the namespace names for the Dynamo Admin #679
Add method to retrieve the namespace names for the Dynamo Admin #679
Conversation
231c721
to
02bd289
Compare
02bd289
to
0153c23
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
Left one minor suggestion on the naming.
(if it is appropriate, please fix it, but you don't need to request for re-review)
} | ||
} | ||
|
||
private void dropAllTableOfNamespace(Namespace namespace) throws ExecutionException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private void dropAllTableOfNamespace(Namespace namespace) throws ExecutionException { | |
private void dropAllTablesOfNamespace(Namespace namespace) throws ExecutionException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I applied it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall. Left several comments. Please take a look when you have time!
} catch (ConditionalCheckFailedException e) { | ||
throw new ExecutionException( | ||
"the namespace " + namespace + " cannot be created as it already exists"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also handle other runtime exceptions here?
} | |
} catch (Exception e) { | |
... | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. I revised it, please have a look again.
throw new ExecutionException( | ||
"dropping the namespace " | ||
+ Namespace.of(namespacePrefix, nonPrefixedNamespace) | ||
+ " failed", | ||
e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this can throw a ExecutionException
whose cause
is also ExecutionException
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I do this to give more context to the ExecutionException
thrown by a sub-method. I think the stack trace produced makes it easier to understand the root reason for the error.
…_namespace_names_to_dynamo_admin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
I changed the PR target branch to the feat/namespaces_management branch that will contain all the namespaces management-related changes. @brfrn169 Sorry for the trouble. Please have a look again. @feeblefakie It seems your review is not required since I did not push anything since your last review but feel free to have a look again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
This implement the
admin.getNamespaceNames()
for the DynamoAdmin.