apache / apache/arrow-rs-object-store

object_store: Fetching empty ranges raises error

Open
#453 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
322
Forks
212
Avg merge
5d 2h
Merged PRs (30d)
10

Description

**Describe the bug**
Fetching empty ranges raise an error instead of succeeding.

**To Reproduce**
Perform `get_range(path, 0..0)` on the object store.

`error: "object-store error: Generic S3 error: Range started at 0 and ended at 0"`

**Expected behavior**
It should succeed and return an empty `Bytes` object

**Additional context**

Contributor guide

Open the contributing guide

Research direction

Start at the object store's get_range(path, 0..0) entry point and reproduce the reported S3 range error. Trace the empty-range handling and add or update coverage for this case; done means the call succeeds and returns an empty Bytes object.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, rust
Domain
backend, cloud
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.