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/gc): misc fixes in gc source #12226

Merged
merged 2 commits into from
Dec 26, 2024
Merged

Conversation

anshbansal
Copy link
Collaborator

  • in some cases while no tokens were actually being returned the token was > 0 which caused an infinite loop
  • In some cases execution request calls were giving server errors

Both these caused a very long loop and in some cases an infinite loop. This fixes that and adds ingestion stage reporting so we can see what is happening in all such cases

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

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Dec 26, 2024
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Dec 26, 2024
@@ -281,6 +292,8 @@ def revoke_expired_tokens(self) -> None:
list_access_tokens = expired_tokens_res.get("listAccessTokens", {})
tokens = list_access_tokens.get("tokens", [])
total = list_access_tokens.get("total", 0)
if tokens == []:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Won't total be set to 0 if no tokens are returned ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It should be. But seems like we might have a bug in the backend.

@anshbansal anshbansal merged commit 16698da into master Dec 26, 2024
74 of 76 checks passed
@anshbansal anshbansal deleted the ab-fix-datahub-gc-source branch December 26, 2024 12:40
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 needs-review Label for PRs that need review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants