`file` input deletes empty files but doesn't actually process them
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- go
- Domain
- stream-processing
Research direction
Reproduce the issue with the emptyfile and newlinefile commands and the shown YAML configuration, then trace the file input processing path. Done means an empty file runs the configured processors and outputs before it is deleted when delete_on_finish is enabled.
Written by the indexing model from the issue text.
Description
For instance, try echo -n > inputs/emptyfile vs echo > inputs/newlinefile. The empty file will send the message Consuming from file 'inputs/emptyfile' to the debug logger and will delete the file, but won't actually run any processors or outputs.
Example connect config:
logger:
level: DEBUG
input:
file:
delete_on_finish: true
paths:
- inputs/*
pipeline:
processors:
- log:
message: "This won't appear for empty files!"
- Dominant language
- Go
- Stars
- 578
- Forks
- 124
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 10
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from redpanda-data/benthos
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
redpanda-data/benthos#404 ·
Maintainers usually reply within 1 day
-
Streams mode: spans carry no stream identityPossibly taken @alexander-zimmermann claimed this 43 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 68/100
redpanda-data/benthos#503 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
redpanda-data/benthos#502 ·
Maintainers usually reply within 1 day
-
streams API: support per-request `env` overrides for config templatingPossibly taken @g-hurst claimed this 65 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 72/100
redpanda-data/benthos#481 ·
Maintainers usually reply within 1 day
-
http_server input can get permanently stuck returning 503 after a stream restart (stream mode)Possibly taken @masnnuller claimed this 81 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 72/100
redpanda-data/benthos#469 ·
Maintainers usually reply within 1 day
All issues in redpanda-data/benthos
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
blinklabs-io/dingo#5636 ·
Maintainers usually reply within 1 day
-
automated-analysis bug cookie safe-outputs tool-improvement workflow-issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
github/gh-aw#71952 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JetBrains/youtrack-cli#130 ·
Maintainers usually reply within 1 day
-
Cloudflare Pages secret sync throws TypeError when deployment_configs[environment] is undefinedOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Infisical/infisical#8892 · 1 comment ·
Maintainers usually reply within 1 day
-
windvane requests one more page than it needsPossibly taken @TassioSales claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
projectdiscovery/subfinder#1979 ·
Maintainers usually reply within 3 days