Skip to content

fix(parquet/file): restore goroutine safety for reader#343

Merged
zeroshade merged 1 commit intoapache:mainfrom
zeroshade:fix-data-race
Apr 11, 2025
Merged

fix(parquet/file): restore goroutine safety for reader#343
zeroshade merged 1 commit intoapache:mainfrom
zeroshade:fix-data-race

Conversation

@zeroshade
Copy link
Member

Rationale for this change

Fixes #342

What changes are included in this PR?

use sync.OnceValues to initialize the row group page index reader on demand, but safely

@zeroshade zeroshade requested review from kou, lidavidm, mapleFU and wgtmac April 5, 2025 00:06
Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

Copy link
Contributor

@singh1203 singh1203 left a comment

Choose a reason for hiding this comment

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

+1

@zeroshade zeroshade merged commit 4970bb8 into apache:main Apr 11, 2025
23 checks passed
@zeroshade zeroshade deleted the fix-data-race branch April 11, 2025 17:38
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.

Data race in GetColumnPageReader

4 participants