-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed as not planned
Labels
type: bugA code related bug.A code related bug.
Description
A note for the community
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Problem
Error message:
thread 'vector-worker' panicked at 'internal error: entered unreachable code: join error or bad poll', src/topology/builder.rs:901:30
With a non-standard log input like this (stdin):
"/volume/LongFileNameLongFileName.hpp:42 Some Text:[0,0]"
which is parsed by this remap VRL function (which was intended to match "/path/file.cpp[42] ..."):
data, error = parse_grok!(.message, "%{PATH:srcfile}\\[%{NUMBER:srcline}\\] %{GREEDYDATA:specific_msg}")
The VRL function should fail, but not panic.
Configuration
[sources.in]
type = "stdin"
[transforms.vector_bug1]
inputs = ["in"]
type = "remap"
source = '''
data = parse_grok!(.message, "%{PATH:srcfile}\\[%{NUMBER:srcline}\\] %{GREEDYDATA:specific_msg}")
. = merge(., {
"srcfile": data.srcfile,
"srcline": data.srcline,
"specific_msg": data.specific_msg,
})
'''
[sinks.json_output]
inputs = ["vector_bug1"]
encoding.codec = "json"
type = "console"
Version
vector 0.34.0
Debug Output
https://gist.github.com/henrywiechert/62cc6f1baa86a58c1159b18cf681bbf4
Example Data
Stripped down input data, that still generates the panic is shown below. Seems two aspects are relevant.
- the length of the path/file name (issue not happen with shorter path/file names)
- having the square brackets at the "unexpected" position
Input data:
/volume/LongFileNameLongFileName.hpp:42 Some Text:[0,0]
Additional Context
No response
References
No response
Metadata
Metadata
Assignees
Labels
type: bugA code related bug.A code related bug.