Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HIVE-27447: Iceberg: Queries failing due to FileSystem close errors due to column statistics. #4429

Merged
merged 1 commit into from Jun 20, 2023

Conversation

ayushtkn
Copy link
Member

What changes were proposed in this pull request?

Avoid closing FIleSystem during column statistics stage. FileSystem instance is cached across the service, If we close one and some other thread tries to use that cached FS, it will fail with FS Closed Errors.

Second,
Closing & Recreating a new FS every time is costly, as the FS needs to be initialised every time & hence it shouldn't be closed mid way.

Why are the changes needed?

Avoid FS Close Errors

Does this PR introduce any user-facing change?

Queries doesn't fail with FS close error when using column stats source as Iceberg

Is the change a dependency upgrade?

No

@sonarcloud
Copy link

sonarcloud bot commented Jun 17, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@deniskuzZ deniskuzZ left a comment

Choose a reason for hiding this comment

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

+1

@ayushtkn ayushtkn merged commit 0865ca7 into apache:master Jun 20, 2023
7 checks passed
yeahyung pushed a commit to yeahyung/hive that referenced this pull request Jul 20, 2023
…ue to column statistics. (apache#4429). (Ayush Saxena, reviewed by Denys Kuzmenko,)
tarak271 pushed a commit to tarak271/hive-1 that referenced this pull request Dec 19, 2023
…ue to column statistics. (apache#4429). (Ayush Saxena, reviewed by Denys Kuzmenko,)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants