Fix/glue lakeformation access denied get database#358
Closed
rpoluri wants to merge 3 commits into
Closed
Conversation
…on for Glue federations When a client describes a non-existent database on a Glue/Lake Formation-backed metastore, Lake Formation returns AccessDeniedException instead of EntityNotFoundException to prevent database enumeration. This caused waggle-dance to surface a confusing AWS error to clients rather than the standard Hive NoSuchObjectException. Adds isGlueBackend() to MetaStoreMapping (propagated via MetaStoreMappingImpl and MetaStoreMappingDecorator, set from GlueConfig presence in MetaStoreMappingFactoryImpl) so get_database can scope the translation to Glue federations only. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…on for get_table on Glue federations Same pattern as get_database: Lake Formation returns AccessDeniedException instead of EntityNotFoundException for non-existent tables to prevent enumeration. Applied the translation in both get_table and get_table_req so clients receive the standard Hive NoSuchObjectException regardless of which path the caller uses. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
javsanbel2
requested changes
Jun 25, 2026
javsanbel2
left a comment
Contributor
There was a problem hiding this comment.
I think this should not be the place where this exception is handled
Have you considered handling the exception here? https://github.com/ExpediaGroup/aws-glue-data-catalog-client-for-apache-hive-metastore/tree/branch/waggle-dance
This library is used within Waggledance to connect to Glue as a thrift client
Contributor
|
Done as part of #359 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
Handle LakeFormation Access Denied Excpetion when describing invalid Database and Tables in Glue Catalogs.
🔗 Related Issues