[
https://issues.apache.org/jira/browse/OAK-11807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18005186#comment-18005186
]
Marcel Reutegger edited comment on OAK-11807 at 7/21/25 6:09 AM:
-----------------------------------------------------------------
Proposed fix: https://github.com/apache/jackrabbit-oak/pull/2392 (merged)
was (Author: mreutegg):
Proposed fix: https://github.com/apache/jackrabbit-oak/pull/2392
> Duplicate header after failed SegmentBufferWriter.flush()
> ---------------------------------------------------------
>
> Key: OAK-11807
> URL: https://issues.apache.org/jira/browse/OAK-11807
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: segment-tar
> Reporter: Marcel Reutegger
> Assignee: Marcel Reutegger
> Priority: Minor
> Fix For: 1.84.0
>
>
> When SegmentBufferWrite.flush() fails, the next attempt to flush the segment
> will have a duplicate header in the segment data.
> With enough failures and re-attempts to write the segment, the segment may
> even go into a state that cannot be written to the SegmentStore. The flush
> then fails with IllegalStateException that complains about "Too much data for
> a segment".
--
This message was sent by Atlassian Jira
(v8.20.10#820010)