vectordotdev / vectordotdev/vector

File sink does not recreate file if the old file was deleted

Open
#2,055 13 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

meta: feedback needs: approval needs: requirements sink: file
Dominant language
Rust
Stars
22.6k
Forks
2.3k
Avg merge
1d 7h
Merged PRs (30d)
146

Description

From our chat:

"file sink" does not recreate a file if old one was deleted using "rm" - is it correct behaviour?

We should decide how to handle this.

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 locating the file sink implementation and reproducing the reported behavior: delete the sink's existing file with rm, then observe whether subsequent output recreates it. Determine the intended behavior before making a change; done means the behavior is decided, documented by a regression test, and the sink acts accordingly.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.