HomeSoftware Heritage

Always flush kafka producers in tests

Description

Always flush kafka producers in tests

Sometimes, in a very loaded situation, the producer can return and let
the consumer start before the topic is actually created.

Adding a producer.flush() avoids that race condition.

Details

Provenance
olasdAuthored on Jul 21 2021, 3:12 PM
olasdPushed on Jul 23 2021, 10:32 AM
Differential Revision
D6016: Always flush kafka producers in tests
Parents
rDSEA4e453304ade0: docs/query-language: Describe search query language syntax
Branches
Unknown
Tags
Unknown
Build Status
Buildable 22723
Build 35436: test-and-buildJenkins console · Jenkins