redpanda-data / redpanda-data/benthos

file cache should be able to create directories

Open
#104 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs investigation
Dominant language
Go
Stars
571
Forks
120
Avg merge
2d 1h
Merged PRs (30d)
18

Description

if you put a / in your cache key today file cache errors ERRO failed to write result to cache: %!s(<nil>) @service=redpanda-connect label="" path=root.pipeline.processors.0.branch.processors.0. It would be helpful if it did not error because then file could mimic object stores like s3 for local development.

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 cache implementation and the path used when writing a cache key containing '/'. Trace how the key becomes a filesystem path and add or run relevant tests; done means nested directories are created as needed and the write no longer errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
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.