Skip to content

Fix Segment size estimation in SchemaFile#8003

Merged
MarcosZyk merged 1 commit intoapache:masterfrom
bigreybear:fsse
Nov 21, 2022
Merged

Fix Segment size estimation in SchemaFile#8003
MarcosZyk merged 1 commit intoapache:masterfrom
bigreybear:fsse

Conversation

@bigreybear
Copy link
Copy Markdown
Contributor

Description

This pr fixs a bug involved from #7726 where tried to optimize performance by an extra segment estimation method. The method takes into account the size of write batch but ignores to compare it with the original size, which throws an exception with message that cannot extend a segment into a smaller buffer.

The problem is fixed by this pr, in comany with a new ut to verify it.

@MarcosZyk MarcosZyk merged commit c7c239c into apache:master Nov 21, 2022
@bigreybear bigreybear deleted the fsse branch November 22, 2022 08:37
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