Skip to content

Merge branch 'master' into TT-15560-Add-batchbytes-config-for-Kafka-pump

02c34db
Select commit
Loading
Failed to load commit list.
Merged

[TT-15560] added batchbytes configs and unit testing for kafka #889

Merge branch 'master' into TT-15560-Add-batchbytes-config-for-Kafka-pump
02c34db
Select commit
Loading
Failed to load commit list.
probelabs / Visor: performance succeeded Oct 13, 2025 in 5m 1s

✅ Check Passed (Warnings Found)

performance check passed. Found 1 warning, but fail_if condition was not met.

Details

📊 Summary

  • Total Issues: 1
  • Warning Issues: 1

🐛 Issues by Category

⚡ Performance (1)

  • ⚠️ pumps/kafka.go:185 - The batch_bytes configuration parameter lacks an upper limit. A malicious or misconfigured user could provide an extremely large value, causing the application to allocate excessive memory for the message batch. This could lead to an Out-of-Memory (OOM) error, resulting in a Denial of Service (DoS).

Generated by Visor - AI-powered code review

Annotations

Check warning on line 189 in pumps/kafka.go

See this annotation in the file changed.

@probelabs probelabs / Visor: performance

performance Issue

The `batch_bytes` configuration parameter lacks an upper limit. A malicious or misconfigured user could provide an extremely large value, causing the application to allocate excessive memory for the message batch. This could lead to an Out-of-Memory (OOM) error, resulting in a Denial of Service (DoS).
Raw output
Implement a validation check to enforce a reasonable maximum value for `batch_bytes`. If the configured value exceeds this limit, the pump should either cap the value at the maximum and log a warning, or return an error during initialization to prevent starting with a potentially dangerous configuration.