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

feat: return metrics about the commit #3202

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HawaiianSpork
Copy link
Contributor

Description

PostCommit now contains the number of retries it took to do the commit and FinalizeCommit now contains number of retries, whether there was a checkpoint created and number of log files cleaned-up.

This can be useful for consumers to track if the retries are approaching the maximum retry count. It also allows consumers to correlate commit times with the amount of work being done for that commit.

@github-actions github-actions bot added the binding/rust Issues for the Rust crate label Feb 10, 2025
Copy link

ACTION NEEDED

delta-rs follows the Conventional Commits specification for release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

@HawaiianSpork HawaiianSpork marked this pull request as draft February 10, 2025 14:14
@HawaiianSpork HawaiianSpork force-pushed the commit_metrics branch 2 times, most recently from 2646c02 to ebde039 Compare February 10, 2025 14:19
@HawaiianSpork HawaiianSpork changed the title feat: Allow commit to report metrics about the commit feat: return metrics about the commit Feb 10, 2025
@HawaiianSpork HawaiianSpork marked this pull request as ready for review February 10, 2025 14:21
Post commit now contains the number of retries it took to do the commit and FinalizeCommit now contains number of retries, whether there was a checkpoint created and number of log files cleaned-up.

Signed-off-by: Michael Maletich <[email protected]>
Copy link

codecov bot commented Feb 11, 2025

Codecov Report

Attention: Patch coverage is 89.65517% with 3 lines in your changes missing coverage. Please review.

Project coverage is 72.16%. Comparing base (cf5f38a) to head (539e6ee).

Files with missing lines Patch % Lines
crates/core/src/operations/transaction/mod.rs 89.65% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3202      +/-   ##
==========================================
- Coverage   72.18%   72.16%   -0.02%     
==========================================
  Files         138      138              
  Lines       45292    45309      +17     
  Branches    45292    45309      +17     
==========================================
+ Hits        32694    32698       +4     
- Misses      10535    10536       +1     
- Partials     2063     2075      +12     

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

@ion-elgreco
Copy link
Collaborator

ion-elgreco commented Feb 14, 2025

@HawaiianSpork can you fix the fmt and add a small test, and then rebase?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/rust Issues for the Rust crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants