Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

fix: panic when read data out of range by disk cache#1206

Merged
jiacai2050 merged 2 commits into
apache:mainfrom
ShiKaiWi:fix-disk-cache-panic
Sep 11, 2023
Merged

fix: panic when read data out of range by disk cache#1206
jiacai2050 merged 2 commits into
apache:mainfrom
ShiKaiWi:fix-disk-cache-panic

Conversation

@ShiKaiWi

Copy link
Copy Markdown
Member

Rationale

Close #1194

Detailed Changes

Throw OutOfRange error when the query range is out of the file size.

Test Plan

Add a new dedicated unit test for this case.

@ShiKaiWi ShiKaiWi requested a review from jiacai2050 September 11, 2023 05:47
Comment thread components/object_store/src/disk_cache.rs Outdated
Comment thread components/object_store/src/disk_cache.rs Outdated

@jiacai2050 jiacai2050 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jiacai2050 jiacai2050 merged commit be97733 into apache:main Sep 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

compaction panic when read disk cache

2 participants