fluent / fluent-bit

Fast and Lightweight Logs and Metrics processor for Linux, BSD, OSX and Windows
https://fluentbit.io
Apache License 2.0
5.55k stars 1.52k forks source link

Check last error after flb_log_event_decoder_next #7636

Closed nokute78 closed 3 months ago

nokute78 commented 1 year ago

Bug Report

Original issue is https://github.com/fluent/fluent-bit/issues/7362 We need to check if last decoder error is a real error or end of buffer using flb_log_event_decoder_get_last_result https://github.com/fluent/fluent-bit/issues/7362#issuecomment-1546645128

 there's a patch for that we've been applying in other plugins which conditionally switches the result code when it's FLB_EVENT_DECODER_ERROR_INSUFFICIENT_DATA and the input buffer offset matches the input buffer size (in the decoder state).

See also https://github.com/fluent/fluent-bit/pull/7540

Following plugins are using flb_log_event_decoder_next.

Describe the bug

To Reproduce

Expected behavior

Screenshots

Your Environment

Additional context

github-actions[bot] commented 7 months ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the exempt-stale label.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the exempt-stale label.

github-actions[bot] commented 3 months ago

This issue was closed because it has been stalled for 5 days with no activity.