influxdata / influxdata/influxdb

Crash from cached series ID's referencing mmap'd memory

Open
#23,905 0 comments 0 reactions 0 assignees View on GitHub
area/storage kind/bug
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

SeriesIDSet's can contain mmap'd memory from TSI files.

If we keep the SeriesIDSet past the lifetime of the iterator it is associated with, we need to cleanse it of the mmap'd memory, or else we get a segfault.

Corresponding Cloud issue: https://github.com/influxdata/idpe/issues/15900

Contributor guide

Open the contributing guide

Research direction

Start by tracing SeriesIDSet ownership from the TSI iterator and identify where mmap'd memory remains referenced after the iterator ends. Use the corresponding Cloud issue for context, then verify that retaining a SeriesIDSet beyond its iterator lifetime no longer causes a segfault.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.