Skip to content
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

[Minor] Improve log messages #6531

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ private void removeSchemaMetadataObject(AuthorizationMetadataObject authzMetadat
authzMetadataObject.type() == SCHEMA, "The metadata object type must be a schema");
Preconditions.checkArgument(
authzMetadataObject.names().size() == 1,
"The size of the metadata object's size must be 1.");
"The metadata object's size must be 1.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reads much better. Thanks.

if (RangerHelper.RESOURCE_ALL.equals(authzMetadataObject.name())) {
// Remove all schema in this catalog
String catalogName = authzMetadataObject.names().get(0);
Expand Down Expand Up @@ -361,7 +361,7 @@ private void removeTableMetadataObject(AuthorizationMetadataObject authzMetadata
authzMetadataObject instanceof PathBasedMetadataObject,
"The metadata object must be a PathBasedMetadataObject");
Preconditions.checkArgument(
authzMetadataObject.names().size() == 3, "The metadata object size must be 3");
authzMetadataObject.names().size() == 3, "The metadata's object size must be 3");
Preconditions.checkArgument(
authzMetadataObject.type() == PATH, "The metadata object type must be a path");
removePolicyByMetadataObject(authzMetadataObject);
Expand Down
Loading