Skip to content

Ensure balanced calls to openElem/closeElem in CsvBuilder#2657

Merged
ChristianGruen merged 1 commit intoBaseXdb:mainfrom
GuntherRademacher:#2653
Apr 30, 2026
Merged

Ensure balanced calls to openElem/closeElem in CsvBuilder#2657
ChristianGruen merged 1 commit intoBaseXdb:mainfrom
GuntherRademacher:#2653

Conversation

@GuntherRademacher
Copy link
Copy Markdown
Member

For empty rows, CsvBuilder failed to issue closeElem for the <record> element to the underlying database Builder. This left one or more elements open, so when the document was closed, closeDoc left the document with its preliminary size of 0. When walking through a document with size 0, the size never advances while allocating resources, causing the OOM.

The fix is to make sure closeElem is always called for <record>, even when the row is empty.

@ChristianGruen ChristianGruen merged commit 1c922da into BaseXdb:main Apr 30, 2026
1 check passed
@ChristianGruen ChristianGruen deleted the #2653 branch April 30, 2026 16:54
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