apple / apple/foundationdb

A failure to write trace logs can cause processes to run out of memory

Open
#5,506 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
16.7k
Forks
1.6k
Avg merge
1d 20h
Merged PRs (30d)
126

Description

A [recent issue](https://github.com/apple/foundationdb/issues/5405) revealed a case where an fdbserver process that couldn't write its trace files was running out of memory. It would be better to cap the amount of memory we keep for trace logs and start dropping them if we exceed it.

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked issue #5405 and tracing how fdbserver writes its trace files. Identify where unwritten trace logs are retained, then verify that retention is capped and excess logs are dropped so a failed trace-file write cannot exhaust process memory.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
databases, distributed-systems, observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.