Skip to content

Commit

Permalink
skip updating processor status with null values for timestamp (#511)
Browse files Browse the repository at this point in the history
* skip updating processor status with null values for timestamp

* lint
  • Loading branch information
yuunlimm authored Sep 17, 2024
1 parent 29b7a94 commit c42d401
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rust/processor/src/gap_detectors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ pub async fn create_gap_detector_status_tracker_loop(
Ok(res) => {
match res {
GapDetectorResult::ParquetFileGapDetectorResult(res) => {
if res.last_transaction_timestamp.is_none() {
// we don't want to update the last processed version if we haven't processed anything
tracing::info!("No transactions processed, skipping update the processor status");
continue;
}

PARQUET_PROCESSOR_DATA_GAP_COUNT
.with_label_values(&[processor_name])
.set(res.num_gaps as i64);
Expand Down

0 comments on commit c42d401

Please sign in to comment.