Skip to content

Commit 39d1ac7

Browse files
NicolappsConvex, Inc.
authored andcommitted
Improve error for document_deltas retention error (#41217)
GitOrigin-RevId: 9a806a3875f3a00fa0d279bf1503529e853ee8e3
1 parent a8cd91a commit 39d1ac7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

crates/database/src/database.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1849,7 +1849,15 @@ impl<RT: Runtime> Database<RT> {
18491849
// Throws a user error if the documents window is out of retention
18501850
anyhow::bail!(ErrorMetadata::bad_request(
18511851
"InvalidWindowToReadDocuments",
1852-
format!("Timestamp {} is too old", range.min_timestamp_inclusive())
1852+
format!(
1853+
"Trying to synchronize from timestamp {}, which is older than the \
1854+
database’s retention window. This may happen if you paused your \
1855+
Fivetran or Airbyte connector for a long period of time. Please perform \
1856+
a full sync of the connector. See \
1857+
https://fivetran.com/docs/connectors/troubleshooting/trigger-historical-re-syncs or \
1858+
https://docs.airbyte.com/platform/operator-guides/refreshes",
1859+
range.min_timestamp_inclusive()
1860+
)
18531861
))
18541862
},
18551863
Err(e) => anyhow::bail!(e),

0 commit comments

Comments
 (0)