flagr
flagr copied to clipboard
Evaluations being recorded to Kafka multiple times
Evaluations sent through the Kafka Recorder are getting duplicated intermittently.
Expected Behavior
Each evaluation should have a single message sent to Kafka.
Current Behavior
Approximately 0.65% (sampled from roughly 6 million Kafka messages) of evaluations are recorded to Kafka 2 or more times.
Steps to Reproduce (for bugs)
- Use Vegeta to produce about 2000 evaluations per second with randomly generated entity IDs for about 15 minutes
- Use the Sarama example apps (with some minor formatting adjustments) to consume the generated messages in Kafka and pipe the results into a CSV
- Identified multiple identical payload messages in the CSV
Context
Creates some confusion/misleading conclusions if someone doesn't know to dedup data when doing analysis on an AB Test.
Your Environment
- Flagr v1.1.12
- Kafka v2.3.1
https://github.com/openflagr/flagr/issues/21#issuecomment-894709420
Stale issue message