Skip to content

Commit

Permalink
Fix catching error in test_replication_lag
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Knizhnik committed Feb 7, 2024
1 parent 28475c6 commit 32f4a56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions safekeeper/src/send_wal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ impl WalSenders {
fn record_standby_reply(self: &Arc<WalSenders>, id: WalSenderId, reply: &StandbyReply) {
let mut shared = self.mutex.lock();
let slot = shared.get_slot_mut(id);
info!(
"Record standby reply: ts={} apply_lsn={}",
reply.reply_ts, reply.apply_lsn
);
match &mut slot.feedback {
ReplicationFeedback::Standby(sf) => sf.reply = *reply,
ReplicationFeedback::Pageserver(_) => {
Expand Down
4 changes: 1 addition & 3 deletions test_runner/regress/test_replication_lag.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ def run_pgbench(connstr: str):
)
except Exception as error:
print(f"Query failed: {error}")
if not str(error).startswith(
"canceling statement due to conflict with recovery"
):
if "canceling statement due to conflict with recovery" not in str(error):
raise

t.join()

0 comments on commit 32f4a56

Please sign in to comment.