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

Refactor and expose cache_fragment_metadata() as api #178

Merged
merged 6 commits into from
Nov 22, 2024

Conversation

nalinigans
Copy link
Collaborator

Add cache_fragment_metadata to TileDBUtils to expose this functionality as api.

Copy link

codecov bot commented Nov 21, 2024

Codecov Report

Attention: Patch coverage is 82.35294% with 12 lines in your changes missing coverage. Please review.

Project coverage is 64.04%. Comparing base (372d672) to head (0be03ae).
Report is 1 commits behind head on ng_perf_11142024.

Files with missing lines Patch % Lines
core/src/c_api/tiledb_utils.cc 77.77% 12 Missing ⚠️
Additional details and impacted files
@@                 Coverage Diff                  @@
##           ng_perf_11142024     #178      +/-   ##
====================================================
+ Coverage             63.93%   64.04%   +0.11%     
====================================================
  Files                    58       58              
  Lines                 16425    16446      +21     
  Branches               2951     2960       +9     
====================================================
+ Hits                  10501    10533      +32     
+ Misses                 5793     5783      -10     
+ Partials                131      130       -1     

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


🚨 Try these New Features:

@nalinigans nalinigans requested a review from mlathara November 21, 2024 19:48
Copy link
Contributor

@mlathara mlathara left a comment

Choose a reason for hiding this comment

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

lgtm

}
free(buffer);
if (unlock_file(fd)) {
RETURN_ERRMSG_PATH("Could not close file", bookkeeping_path);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to delete the file for cleanup in this case?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes!

@nalinigans nalinigans merged commit 53fd044 into ng_perf_11142024 Nov 22, 2024
28 checks passed
@nalinigans nalinigans deleted the ng_perf_11202024 branch November 22, 2024 02:22
nalinigans added a commit that referenced this pull request Nov 23, 2024
…ays (#177)

* Support caching of bookkeeping files locally for cloud workspaces/arrays
* remove azurite for now, needs new certificates
* Codecov now needs token even for public repositories
* Test TILEDB_CACHE and TILEDB_BOOKKEEPING_STATS flows
* Add tests for code coverage
* Refactor and expose cache_fragment_metadata() as api (#178)
* Add cache_fragment_metadata to TileDBUtils to expose this functionality as api
* Don't leak file handles in error conditions
* Copyright update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants