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/bigquery): clear stateful ingestion correctly #7075

Merged
merged 3 commits into from
Jan 19, 2023

Conversation

hsheth2
Copy link
Collaborator

@hsheth2 hsheth2 commented Jan 18, 2023

Prior to this change, we would correctly soft-delete entities, but we wouldn't clear them out of the state payload. This means that every subsequent ingestion run would also try to soft delete those entities. This should require no intervention to roll out the changes.

Minor related change: fixes the reporting usage so that we only report each entity once. This ensures that the ingestion reports we produce are accurate. We were previously double-counting everything.

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

Prior to this change, we would correctly soft-delete entities, but we
wouldn't clear them out of the state payload. This means that every
subsequent ingestion run would also try to soft delete those entities.
This should require no intervention to roll out the changes.
@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Jan 18, 2023
Copy link
Contributor

@treff7es treff7es left a comment

Choose a reason for hiding this comment

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

lgtm

@treff7es treff7es merged commit c4f946c into datahub-project:master Jan 19, 2023
@hsheth2 hsheth2 deleted the bigquery-fix-state-bug branch January 19, 2023 18:47
ericyomi pushed a commit to ericyomi/datahub that referenced this pull request Feb 8, 2023
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants