vector icon indicating copy to clipboard operation
vector copied to clipboard

fix(codecs): Ensure that batches using newline delimited framing end in a newline

Open jszwedko opened this issue 1 year ago • 2 comments
trafficstars

Fixes: #21086

Signed-off-by: Jesse Szwedko [email protected]

jszwedko avatar Aug 16 '24 22:08 jszwedko

Datadog Report

Branch report: jszwedko/add-batch-trailing-newline Commit report: aa6e9ef Test service: vector

:x: 6 Failed (0 Known Flaky), 334 Passed, 0 Skipped, 4m 18.73s Total Time

:x: Failed Tests (6)

This report shows up to 5 failed tests.

  • sinks::nats::integration_tests::nats_tls_client_cert_valid - vector - Details

    Expand for error
    est failed, but output was not captured
    
  • sinks::nats::integration_tests::nats_tls_jwt_auth_valid - vector - Details

    Expand for error
    est failed, but output was not captured
    
  • sinks::nats::integration_tests::nats_tls_valid - vector - Details

    Expand for error
    est failed, but output was not captured
    
  • sources::nats::integration_tests::nats_tls_client_cert_valid - vector - Details

    Expand for error
    est failed, but output was not captured
    
  • sources::nats::integration_tests::nats_tls_jwt_auth_valid - vector - Details

    Expand for error
    est failed, but output was not captured
    

It does feel a bit strange that this is only coming up now 🤔

Agreed. I think most consumers would handle newline or EOF as the delimiter though so needing the trailing newline may not be a common need. I think it is more "correct" though and less likely to cause weird issues if EOFs aren't handled as delimiters.

jszwedko avatar Aug 19 '24 21:08 jszwedko

Datadog Report

Branch report: jszwedko/add-batch-trailing-newline Commit report: c7481a8 Test service: vector

:white_check_mark: 0 Failed, 454 Passed, 0 Skipped, 3m 58.45s Total Time