Commit bc61e32
Fix AxoSyslog HTTP duplicate output + decouple malformed check from dedup
Two long-standing bugs that surfaced when investigating tcp_to_http_persistent_correctness and otlp_grpc_to_otlp_grpc_correctness for AxoSyslog:
1) AxoSyslog HTTP destination was emitting every line twice. The body
template was "${MESSAGE}\n" — but the http() destination already
inserts a "\n" delimiter between records in a batch. Combined, that
produced "MSG\n\nMSG\n\n..."; the receiver split on "\n" and counted
the empty entries as lines, doubling the count. Stored results show
axosyslog at exactly 2.00x lines_out/lines_in on every HTTP test
(tcp_to_http_performance, tcp_to_http_5min_performance,
tcp_to_http_persistent_correctness) while every other subject is
1.00x — confirms the bug is AxoSyslog-side, not receiver-side.
2) The receiver's "malformed line" structural check fires when either
validate_dedup OR validate_content is set, but the check itself
requires lines to start with "CONN=<id> SEQ=<n>" — a format only
the sequenced text generator produces. OTLP correctness tests use
"OTEL-<seq>" bodies and the dedup hash check on its own works fine,
so the malformed check was a false-positive for every OTLP test.
Gated it on ValidateContent specifically; tests that want both
dedup and the structural check now set both flags.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0db4272 commit bc61e32
13 files changed
Lines changed: 536 additions & 234 deletions
File tree
- cases
- disk_buffer_persistence_correctness/configs
- tcp_to_http_5min_performance/configs
- tcp_to_http_performance/configs
- tcp_to_http_persistent_correctness/configs
- tcp_to_tcp_persistent_correctness/configs
- tcp_to_tcp_persistent_restart_correctness/configs
- containers/receiver
- internal/runner
- web/results/c7i.2xlarge
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
0 commit comments