influxdata / influxdata/influxdb

Storage should reject read requests for non-existent org-bucket pairs

Open
#11,956 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

I was writing some tests for task run logs reading from the system bucket, and when I used a deliberately bad organization ID, against a real storage engine and query controller, I was surprised to see that the query returned successfully (albeit with an empty result set).

Reading from a non-existent org-bucket pair is roughly equivalent to reading from a non-existent DB in 1.x. The read should be rejected with a useful error message.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the task-run-log read against the system bucket with a deliberately invalid organization ID, using a real storage engine and query controller. Trace the storage read path and query-controller handling to determine where a missing org-bucket pair currently becomes an empty result. Done means the read is rejected with a useful error while existing valid reads continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.