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

fix(ingest/glue): add try catch #12449

Merged
merged 2 commits into from
Jan 23, 2025
Merged

Conversation

anshbansal
Copy link
Collaborator

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

for tables in self.get_tables_from_database(database):
all_tables.append(tables)
except Exception as e:
self.report.failure(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we know what kinds of exceptions are to happen here. Trying to determine if there are any that need to be reported as warnings instead.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Access denied causing the whole ingestion to fail

Copy link
Collaborator

Choose a reason for hiding this comment

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

This self.report.failure would cause ingestion to fail but will still do best effort metadata extraction.

If possible, it will be good to identify when its permission error and use more instructive and actionable message when reporting failure.

Copy link
Collaborator

Choose a reason for hiding this comment

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

+1 I agree. This should have had been error reporting in the first place!

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Jan 23, 2025
@datahub-cyborg datahub-cyborg bot added the pending-submitter-response Issue/request has been reviewed but requires a response from the submitter label Jan 23, 2025
Copy link

codecov bot commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...ingestion/src/datahub/ingestion/source/aws/glue.py 71.42% 2 Missing ⚠️
Files with missing lines Coverage Δ
...ingestion/src/datahub/ingestion/source/aws/glue.py 87.90% <71.42%> (-0.24%) ⬇️

... and 37 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3030f90...e565074. Read the comment docs.

@datahub-cyborg datahub-cyborg bot added pending-submitter-merge and removed pending-submitter-response Issue/request has been reviewed but requires a response from the submitter labels Jan 23, 2025
@anshbansal anshbansal merged commit f4c0927 into master Jan 23, 2025
195 of 234 checks passed
@anshbansal anshbansal deleted the ab-2025-jan-23-add-try-catch branch January 23, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata pending-submitter-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants