We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b90397c + 0d5fdfb commit 0ffccdeCopy full SHA for 0ffccde
src/client/partition.rs
@@ -493,7 +493,7 @@ impl BrokerCache for &PartitionClient {
493
.get_leader(MetadataLookupMode::SpecificBroker(Arc::clone(&broker)))
494
.await?;
495
if leader != leader_self {
496
- if let Some(r#gen) = gen_leader_from_self {
+ if let Some(r#gen) = gen_leader_from_arbitrary {
497
// The cached metadata identified an incorrect leader - it is stale and should be refreshed.
498
self.brokers.invalidate_metadata_cache(
499
"partition client: broker that should be leader does treat itself as a leader",
0 commit comments