livepeer / livepeer/go-livepeer

`.m3u8` and `.ts` files left in data folder when B is killed

Open
#998 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: tech debt
Dominant language
Go
Stars
586
Forks
226
Avg merge
1d 17h
Merged PRs (30d)
19

Description

**Describe the bug**
When B is panicked or killed by OOM, `.m3u8` and `.ts` files left in data folder.
For 200 streams it was 1.2G of files.

**To Reproduce**
Steps to reproduce the behavior:
1. run B
2. stream something into it
3. kill B
4. See files left in data folder

**Expected behavior**
We can't clean up folder if process is killed by OOM, but at least we should clean it up on node startup, or else it will eat all the available space eventually.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing node startup and the data-folder handling described in the issue. Reproduce the failure by running B, streaming, and killing it, then verify that startup removes leftover .m3u8 and .ts files without affecting active streams.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
audio-video-rtc
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.