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

try ledger recovery from previous entries in case of corrupt/missing footer of the chunked data #282

Merged
merged 3 commits into from
May 28, 2024

Conversation

dlg99
Copy link
Collaborator

@dlg99 dlg99 commented May 23, 2024

No description provided.

@dlg99 dlg99 changed the title try ledger recovery from previous entries in cas eof corrupt/missing footer of the chunked data try ledger recovery from previous entries in case of corrupt/missing footer of the chunked data May 23, 2024
@dlg99 dlg99 requested a review from eolivelli May 24, 2024 23:13
Copy link
Collaborator

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

+1

long ledgerId = lh.getId();

if (entryId < 0) {
log.warn("[{}] Error reading from metadata ledger {} for cursor {}: No entries in ledger",
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would write "No valid entries in ledger"

brecause we could end up here in case it doesn't find any valid entry at all

@dlg99 dlg99 merged commit 6e72ecb into 3.1_fx_merged May 28, 2024
1 check passed
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.

None yet

2 participants