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
Improve logging for catalog errors #11727
Conversation
Automated checks report:
Some checks failed. Please fix the reported issues and reply 'alluxio-bot, check this please' to re-run checks. |
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.
@gpang Thanks gene! I leave some minor comments.
@@ -47,7 +49,11 @@ public DatabaseInfo(String location, String ownerName, PrincipalType ownerType, | |||
mOwnerName = ownerName; | |||
mOwnerType = ownerType; | |||
mComment = comment; | |||
mParameters = params; |
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.
Are location
and comment
also need a non-null value? Glue doesn't require user to set values for these fields in the database?
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.
Not sure, but those fields were already annotated to be @Nullable
so I am assuming it is ok to be null.
mParameters = Collections.emptyMap(); | ||
} else { | ||
mParameters = params; | ||
} | ||
} |
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.
The glue UDB handles the NPE for parameters, do we want to check it again here?
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.
The reason I put that here, was because this field was not classified as @Nullable
, so I am enforcing that here.
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.
@@ -47,7 +49,11 @@ public DatabaseInfo(String location, String ownerName, PrincipalType ownerType, | |||
mOwnerName = ownerName; | |||
mOwnerType = ownerType; | |||
mComment = comment; | |||
mParameters = params; |
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.
Not sure, but those fields were already annotated to be @Nullable
so I am assuming it is ok to be null.
mParameters = Collections.emptyMap(); | ||
} else { | ||
mParameters = params; | ||
} | ||
} |
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.
The reason I put that here, was because this field was not classified as @Nullable
, so I am enforcing that here.
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
Merged build finished. Test FAILed. |
Test FAILed. |
Jenkins, test this please |
Merged build finished. Test FAILed. |
Test FAILed. |
Jenkins, test this please |
Merged build finished. Test FAILed. |
Test FAILed. |
alluxio-bot, test this please |
alluxio-bot triggering jenkins retest: 0/3 |
jenkins, test this please |
Merged build finished. Test FAILed. |
Test FAILed. |
alluxio-bot triggering jenkins retest: 1/3 |
jenkins, test this please |
Merged build finished. Test PASSed. |
Test PASSed. |
alluxio-bot, merge this please |
alluxio-bot, cherry-pick this to branch-2.3 please |
Auto cherry-pick to branch |
pr-link: #11727 change-id: cid-a83e08d7c28a950e7c6618c7515c2a10681a7942
No description provided.