Debug Timed out while waiting for WAL record problem

This commit is contained in:
anastasia
2021-05-21 17:46:00 +03:00
committed by lubennikovaav
parent 84508d4f68
commit a0e23e6f3f

View File

@@ -542,13 +542,13 @@ impl RocksTimeline {
);
lsn = last_valid_lsn;
}
//trace!("Start waiting for LSN {}, valid LSN is {}", lsn, self.last_valid_lsn.load());
trace!("Start waiting for LSN {}, valid LSN is {}", lsn, self.last_valid_lsn.load());
self.last_valid_lsn
.wait_for_timeout(lsn, TIMEOUT)
.with_context(|| {
format!(
"Timed out while waiting for WAL record at LSN {} to arrive",
lsn
"Timed out while waiting for WAL record at LSN {} to arrive. valid LSN in {}",
lsn, self.last_valid_lsn.load(),
)
})?;
//trace!("Stop waiting for LSN {}, valid LSN is {}", lsn, self.last_valid_lsn.load());