Never store a log twice on retry when it has no timestamp

Open
#154 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
observability

Research direction

Read ADR 0016 (#24) and trace how ingest passes records to the storage port, focusing on request identity and timestamp handling. Reproduce a partial storage failure followed by a retry with a log lacking both time and observed_time; add a regression test for the multi-day trace path as requested. Done means retries store each record once, while records from separate collectors remain out of scope.

Written by the indexing model from the issue text.

Description

area:storage bug priority:low

As a homelab operator,
I want a retried delivery of logs without a timestamp to be stored once,
so that counts stay accurate for sources that send no time.

Acceptance criteria

  • Given a Batch with a log that has neither time nor observed_time, when storing fails part way and the collector retries, then that log is stored once.
  • Given a multi-day trace Batch, when storing fails part way and the collector retries, then each span is stored once (a test only, traces share the guarded path).

Success signal: a forced failure and retry with timeless logs leaves no duplicates.
Out of scope: dropping duplicates sent by two different collectors.
Open questions: None.

Technical notes

Known ceiling of ADR 0016 (#24): Ingest gives such a record the receipt time, which differs on each request, so the content key differs. A fix needs a request identity to reach the storage port.

Dominant language
Rust
Stars
0
Forks
0
Avg merge
40m
Merged PRs (30d)
91

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from jdrouet/tinyobserve

All issues in jdrouet/tinyobserve

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.