flagr icon indicating copy to clipboard operation
flagr copied to clipboard

Evaluations being recorded to Kafka multiple times

Open fenriskiba opened this issue 3 years ago • 1 comments

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)

  1. Use Vegeta to produce about 2000 evaluations per second with randomly generated entity IDs for about 15 minutes
  2. Use the Sarama example apps (with some minor formatting adjustments) to consume the generated messages in Kafka and pipe the results into a CSV
  3. 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

fenriskiba avatar Aug 03 '21 17:08 fenriskiba

https://github.com/openflagr/flagr/issues/21#issuecomment-894709420

zhouzhuojie avatar Aug 07 '21 21:08 zhouzhuojie

Stale issue message

github-actions[bot] avatar Aug 26 '22 21:08 github-actions[bot]