Skip to content

LOG-9386: fix(disk buffer): treat decode errors as bad reads during initialization seek - #289

Merged
openshift-merge-bot[bot] merged 1 commit into
ViaQ:v0.54.0-rhfrom
vparfonov:log9386-decode-recovery
Aug 10, 2026
Merged

LOG-9386: fix(disk buffer): treat decode errors as bad reads during initialization seek#289
openshift-merge-bot[bot] merged 1 commit into
ViaQ:v0.54.0-rhfrom
vparfonov:log9386-decode-recovery

Conversation

@vparfonov

Copy link
Copy Markdown

Apply upstream PR vectordotdev#25691 with adjusted test naming.

Add ReaderError::Decode to is_bad_read() so the reader skips the corrupted data file during initialization instead of failing with CrashLoop.

JIRA: https://redhat.atlassian.net/browse/LOG-9386

/assign @jcantrill

@openshift-ci-robot

openshift-ci-robot commented Aug 7, 2026

Copy link
Copy Markdown

@vparfonov: This pull request references LOG-9386 which is a valid jira issue.

Details

In response to this:

Apply upstream PR vectordotdev#25691 with adjusted test naming.

Add ReaderError::Decode to is_bad_read() so the reader skips the corrupted data file during initialization instead of failing with CrashLoop.

JIRA: https://redhat.atlassian.net/browse/LOG-9386

/assign @jcantrill

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci
openshift-ci Bot requested review from Clee2691 and cahartma August 7, 2026 12:57
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a46fe331-1a25-4b3a-8b88-97eeb9e2347c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jcantrill jcantrill added the v0.54 label Aug 7, 2026
@jcantrill

Copy link
Copy Markdown
Member

@vparfonov most of this PR is test code where my understanding of the logic is weak. Does adding this one error type the only thing that modifies the behavior from "crash" to "skip"?

@vparfonov
vparfonov force-pushed the log9386-decode-recovery branch from d881a1d to d37b576 Compare August 7, 2026 13:38
@vparfonov

Copy link
Copy Markdown
Author

/hold

…nitialization seek

Apply upstream PR vectordotdev#25691 with adjusted test naming.

Add ReaderError::Decode to is_bad_read() so the reader skips the
corrupted data file during initialization instead of failing with CrashLoop.

Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
@vparfonov
vparfonov force-pushed the log9386-decode-recovery branch from d37b576 to 99d76a9 Compare August 7, 2026 17:31
@vparfonov

Copy link
Copy Markdown
Author

/hold cancel

@vparfonov

Copy link
Copy Markdown
Author

@vparfonov most of this PR is test code where my understanding of the logic is weak. Does adding this one error type the only thing that modifies the behavior from "crash" to "skip"?

Yes, correct

@jcantrill

Copy link
Copy Markdown
Member

/approve
/lgtm

@openshift-ci openshift-ci Bot added the lgtm label Aug 10, 2026
@openshift-ci

openshift-ci Bot commented Aug 10, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jcantrill, vparfonov

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot
openshift-merge-bot Bot merged commit 85f6ff7 into ViaQ:v0.54.0-rh Aug 10, 2026
10 checks passed
@vparfonov
vparfonov deleted the log9386-decode-recovery branch August 11, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants