fix: do not overload rdkafka w/ statistics

pull/24376/head
Marco Neumann 2021-11-16 13:41:24 +01:00
parent e6fdd79a0f
commit 9ee004946e
1 changed files with 6 additions and 1 deletions

View File

@ -741,7 +741,12 @@ mod tests {
}
fn connection_config(&self) -> BTreeMap<String, String> {
BTreeMap::from([("statistics.interval.ms".to_owned(), "100".to_owned())])
BTreeMap::from([
// WARNING: Don't set `statistics.interval.ms` to a too lower value, otherwise rdkafka will become
// overloaded and will not keep up delivering the statistics, leading to very long or infinite thread
// blocking during process shutdown.
("statistics.interval.ms".to_owned(), "1000".to_owned()),
])
}
}