Skip to content

Commit

Permalink
Attempt to fix flaky GCP PubSub source test
Browse files Browse the repository at this point in the history
  • Loading branch information
guilload committed Feb 9, 2024
1 parent e83bd52 commit 69dbe66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quickwit/quickwit-indexing/src/source/gcp_pubsub_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl GcpPubSubSource {
}

fn should_exit(&self) -> bool {
self.backfill_mode_enabled && self.state.num_consecutive_empty_batches > 5
self.backfill_mode_enabled && self.state.num_consecutive_empty_batches >= 10
}
}

Expand Down Expand Up @@ -438,7 +438,7 @@ mod gcp_pubsub_emulator_tests {
"num_bytes_processed": 54,
"num_messages_processed": 6,
"num_invalid_messages": 0,
"num_consecutive_empty_batches": 6,
"num_consecutive_empty_batches": 10,
});
assert_eq!(exit_state, expected_exit_state);
}
Expand Down

0 comments on commit 69dbe66

Please sign in to comment.