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: search cache invalidation for iceberg entities #12805

Merged
merged 3 commits into from
Mar 7, 2025

Conversation

chakru-r
Copy link
Collaborator

@chakru-r chakru-r commented Mar 6, 2025

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 product PR or Issue related to the DataHub UI/UX devops PR or Issue related to DataHub backend & deployment labels Mar 6, 2025
Copy link

codecov bot commented Mar 6, 2025

Codecov Report

Attention: Patch coverage is 86.77686% with 16 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...n/metadata/search/client/CacheEvictionService.java 85.45% 7 Missing and 1 partial ⚠️
...oject/iceberg/catalog/DataHubIcebergWarehouse.java 80.00% 2 Missing and 1 partial ⚠️
...din/metadata/search/client/UrnCacheKeyMatcher.java 95.23% 1 Missing and 1 partial ⚠️
.../factory/search/CachingEvictionServiceFactory.java 0.00% 2 Missing ⚠️
...hubproject/iceberg/catalog/DataHubRestCatalog.java 85.71% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chakru-r chakru-r changed the title feat: search cache invalidation for iceberg entities fix: search cache invalidation for iceberg entities Mar 6, 2025
@chakru-r chakru-r force-pushed the iceberg-cache-invalidation branch from 5b8dcc3 to 8a9e06e Compare March 6, 2025 15:17
@chakru-r chakru-r force-pushed the iceberg-cache-invalidation branch from 8a9e06e to 60bcda1 Compare March 6, 2025 15:57
@chakru-r chakru-r force-pushed the iceberg-cache-invalidation branch from 60bcda1 to 615dfc0 Compare March 6, 2025 18:27
@chakru-r chakru-r marked this pull request as ready for review March 6, 2025 18:31
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Mar 6, 2025
}

private Set<Object> getKeys(String cacheName) {
// Enumerating cache keys is not part of the standard Cache interface, but needs is native cache
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is unfortunate but I don't see any alternative either.

@@ -115,6 +115,7 @@ graphService:
searchService:
resultBatchSize: ${SEARCH_SERVICE_BATCH_SIZE:100}
enableCache: ${SEARCH_SERVICE_ENABLE_CACHE:false}
enableEviction: ${SEARCH_SERVICE_ENABLE_CACHE_EVICTION:false}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Once included in a release, we'll want to update our helm chart to support enabling it.

Copy link
Collaborator

@david-leifker david-leifker left a comment

Choose a reason for hiding this comment

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

lgtm, stamping assuming test coverage is met for merging.

@datahub-cyborg datahub-cyborg bot added pending-submitter-merge and removed needs-review Label for PRs that need review from a maintainer. labels Mar 6, 2025
@chakru-r chakru-r merged commit f053188 into master Mar 7, 2025
49 of 50 checks passed
@chakru-r chakru-r deleted the iceberg-cache-invalidation branch March 7, 2025 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops PR or Issue related to DataHub backend & deployment pending-submitter-merge product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants