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

core: Track the number of bytes read when iterating over the WAL #496

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

kim
Copy link
Contributor

@kim kim commented Oct 30, 2023

Description of Changes

Prerequisite for being able to truncate log segments without seeking, e.g. while replaying up until a corrupted record.

Above did not turn out to be feasible, but I think the additional error context is worthwhile.

API and ABI

  • This is a breaking change to the module ABI
  • This is a breaking change to the module API
  • This is a breaking change to the ClientAPI
  • This is a breaking change to the SDK API

If the API is breaking, please state below what will break

Expected complexity level and risk

1

@kim kim mentioned this pull request Oct 30, 2023
4 tasks
@kim kim marked this pull request as draft October 30, 2023 16:26
@kim
Copy link
Contributor Author

kim commented Oct 30, 2023

Setting to draft until #495 lands. I intend to use this for error context as well.

@kim kim force-pushed the kim/log-iter-count-bytes branch 2 times, most recently from 8e4c0b1 to 5f9c052 Compare November 6, 2023 11:58
@kim kim marked this pull request as ready for review November 6, 2023 12:00
@kim kim mentioned this pull request Nov 6, 2023
4 tasks
@kim kim force-pushed the kim/log-iter-count-bytes branch from 5f9c052 to 7c5d13c Compare November 7, 2023 07:58
Mainly for providing additional error context when commit decoding fails.
@kim kim force-pushed the kim/log-iter-count-bytes branch from 7c5d13c to 1080027 Compare November 8, 2023 07:25
@kim kim merged commit 5998a69 into master Nov 8, 2023
@kim kim deleted the kim/log-iter-count-bytes branch November 8, 2023 07:47
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