-
Notifications
You must be signed in to change notification settings - Fork 2k
[ENH]: Globalize dead letter queue in SysDB #6003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| -- Add compaction_failure_count column to collections table to track compaction failures persistently | ||
| ALTER TABLE "public"."collections" ADD COLUMN "compaction_failure_count" integer NOT NULL DEFAULT 0; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -379,6 +379,7 @@ impl SqliteSysDb { | |
| lineage_file_path: None, | ||
| updated_at: SystemTime::UNIX_EPOCH, | ||
| database_id: database_uuid, | ||
| compaction_failure_count: 0, | ||
| }) | ||
| } | ||
|
|
||
|
|
@@ -860,6 +861,7 @@ impl SqliteSysDb { | |
| lineage_file_path: None, | ||
| updated_at: SystemTime::UNIX_EPOCH, | ||
| database_id, | ||
| compaction_failure_count: 0, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Logic] The To fix this, you'll need to:
This will likely also require changes in Example of what needs to change in // In the query builder
// ...
.column((table::Collections::Table, table::Collections::SchemaStr))
.column((table::Collections::Table, table::Collections::CompactionFailureCount)) // Add this
// ...
// In the row processing loop
// ...
let compaction_failure_count: i32 = first_row.get("compaction_failure_count"); // Get the value
// ...
Some(Ok(Collection {
// ...
compaction_failure_count, // Use the fetched value
}))
// ...Context for Agents |
||
| })) | ||
| }) | ||
| .collect::<Result<Vec<_>, GetCollectionsError>>()?; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe leave a note about when compaction failure count is incremented/reset