-
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
Refactor XXXAdmin #317
Refactor XXXAdmin #317
Conversation
277eb90
to
5331fc3
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! It looks better 👍
I left one minor comment but it doesn't block it from being merged.
@@ -173,7 +173,9 @@ public void mutate(List<? extends Mutation> mutations) throws ExecutionException | |||
|
|||
Utility.setTargetToIfNot(mutations, namespacePrefix, namespace, tableName); | |||
operationChecker.check(mutations); | |||
mutations.forEach(operationChecker::check); | |||
for (Mutation mutation : mutations) { |
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.
Any particular reason for not using forEach
?
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 for taking at this!
After this change, operationChecker::check
throws ExecutionException
. forEach
doesn't handle Exception well, so I changed this way.
What I did in this PR is:
XXXAdmin
andXXXTableMetadataManager
because the difference of the two roles are getting ambiguousTableMetadataManager
only for caching table metadataConnectionException
andStorageRuntimeException
Please take a look!