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(metastore-cache): prune before add #29301

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

villebro
Copy link
Member

SUMMARY

Currently the Metastore cache deletes expired entries after trying to add a new entry. If an expired entry exists with the same key, this will cause the operation to fail. This PR fixes the issue, and adds a new test that would previously have failed.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@dosubot dosubot bot added the infra:caching Infra setup and configuration related to caching label Jun 19, 2024
Copy link

codecov bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.72%. Comparing base (76d897e) to head (94ba822).
Report is 1094 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #29301       +/-   ##
===========================================
+ Coverage   60.48%   83.72%   +23.23%     
===========================================
  Files        1931      518     -1413     
  Lines       76236    37548    -38688     
  Branches     8568        0     -8568     
===========================================
- Hits        46114    31438    -14676     
+ Misses      28017     6110    -21907     
+ Partials     2105        0     -2105     
Flag Coverage Δ
hive 48.94% <0.00%> (-0.23%) ⬇️
javascript ?
mysql 77.22% <100.00%> (?)
postgres 77.33% <100.00%> (?)
presto 53.55% <0.00%> (-0.25%) ⬇️
python 83.72% <100.00%> (+20.23%) ⬆️
sqlite 76.79% <100.00%> (?)
unit 59.24% <0.00%> (+1.61%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@villebro villebro merged commit 172ddb4 into apache:master Jun 20, 2024
39 of 40 checks passed
@villebro villebro deleted the villebro/metastore-purge branch June 20, 2024 11:59
@michael-s-molina michael-s-molina added the v4.0 Label added by the release manager to track PRs to be included in the 4.0 branch label Jun 21, 2024
michael-s-molina pushed a commit that referenced this pull request Jun 26, 2024
@mistercrunch mistercrunch added 🍒 4.0.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels labels Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels infra:caching Infra setup and configuration related to caching size/S v4.0 Label added by the release manager to track PRs to be included in the 4.0 branch 🍒 4.0.2 🚢 4.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants