File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ lazy_static! {
53
53
/// Per-Kafka source metrics.
54
54
pub struct SourceMetrics {
55
55
operator_scheduled_counter : IntCounter ,
56
- capability : UIntGauge
56
+ capability : UIntGauge ,
57
57
}
58
58
59
59
impl SourceMetrics {
@@ -813,7 +813,6 @@ fn metadata_fetch(
813
813
continue ;
814
814
}
815
815
new_partition_count = metadata_topic. partitions ( ) . len ( ) ;
816
- let mut refresh_data = partition_count. lock ( ) . expect ( "lock poisoned" ) ;
817
816
818
817
// Upgrade partition metrics
819
818
for p in 0 ..new_partition_count {
@@ -846,7 +845,8 @@ fn metadata_fetch(
846
845
847
846
// Kafka partition are i32, and Kafka consequently cannot support more than i32
848
847
// partitions
849
- * refresh_data = Some ( new_partition_count. try_into ( ) . unwrap ( ) ) ;
848
+ * partition_count. lock ( ) . expect ( "lock poisoned" ) =
849
+ Some ( new_partition_count. try_into ( ) . unwrap ( ) ) ;
850
850
}
851
851
Err ( e) => {
852
852
new_partition_count = 0 ;
@@ -1039,7 +1039,7 @@ where
1039
1039
& mut dp_info. partition_metrics . get_mut ( & partition) . unwrap ( ) ;
1040
1040
partition_metrics. offset_ingested . set ( offset. offset ) ;
1041
1041
partition_metrics. messages_ingested . inc ( ) ;
1042
- cp_info. record_count_since_downgrade += 1 ;
1042
+ cp_info. record_count_since_downgrade += 1 ;
1043
1043
}
1044
1044
}
1045
1045
You can’t perform that action at this time.
0 commit comments