Repository navigation
feat!: Simplify Task interface, extend SpecializedTask interface - #1310
Conversation
WalkthroughRefactors task-queue architecture to SpecializedTask-based scheduling with a registry/runner split; consolidates Catalog task APIs (enqueue/cancel/undrop→clear); exposes named TabularExpirationTask/TabularPurgeTask scheduling APIs; updates Postgres SQL and implementations to support optional all-queues cancellation and adjusted signatures. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Client
participant Service
participant Catalog
participant DB as TaskQueue (Postgres)
participant Runner as TaskQueuesRunner
rect rgb(235,245,255)
note over Client,DB: Scheduling via SpecializedTask API
Client->>Service: request drop/soft-delete
Service->>Service: build TaskMetadata + Payload
Service->>Catalog: TabularExpirationTask::schedule_task::<C>(metadata,payload,trx)
Catalog->>DB: enqueue_tasks(queue_name, [TaskInput])
DB-->>Catalog: TaskId(s)
Catalog-->>Service: Ok
end
rect rgb(245,255,235)
note over Runner,DB: Worker startup & execution
Service->>Runner: task_queues_runner(token).run_queue_workers(restart)
Runner->>DB: spawn workers (per registered queue)
DB-->>Runner: tasks fetched / processed
end
sequenceDiagram
autonumber
participant Service
participant Catalog
participant DB
rect rgb(255,245,235)
note over Service,DB: Cancellation with optional all-queues
Service->>Catalog: TabularExpirationTask::cancel_scheduled_tasks::<C>(queue_opt, filter, force_flag, trx)
Catalog->>DB: cancel_scheduled_tasks(queue_name: Option<&str>, filter, force)
DB-->>Catalog: Ok
Catalog-->>Service: Ok
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
a547008 to
7bbdacb
Compare
There was a problem hiding this comment.
Actionable comments posted: 3
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
crates/lakekeeper/src/implementations/postgres/tabular/view/mod.rs (1)
824-838: Bug: scheduling a View expiration with TabularType::TableYou’re expiring a View but pass TabularType::Table, which can lead to wrong downstream handling.
Apply this diff:
TabularExpirationPayload { - tabular_type: crate::api::management::v1::TabularType::Table, + tabular_type: crate::api::management::v1::TabularType::View, deletion_kind: DeleteKind::Purge, }
🧹 Nitpick comments (20)
crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs (1)
223-234: Optional: classify concurrent updates as 409 Conflict instead of 400If your error model supports it, consider returning Conflict for concurrent updates to better signal the race to clients. No change required for this PR if consumers already rely on 400.
crates/lakekeeper/src/service/task_queue/tabular_purge_queue.rs (1)
52-58: Prefer using the alias for polling to improve readabilityUse TabularPurgeTask::poll_for_new_task:: instead of the explicit SpecializedTask to keep the type usage consistent.
- let task = - SpecializedTask::<PurgeQueueConfig, TabularPurgePayload>::poll_for_new_task::<C>( + let task = TabularPurgeTask::poll_for_new_task::<C>( catalog_state.clone(), poll_interval, cancellation_token.clone(), )crates/lakekeeper/src/catalog/views/drop.rs (1)
72-85: Hard-delete purge scheduling via TabularPurgeTask — LGTMFlow: drop -> optionally schedule purge -> commit is solid. Optionally capture TaskId for audit.
- TabularPurgeTask::schedule_task::<C>( /* ... */ ) - .await?; - tracing::debug!("Queued purge task for dropped view '{view_id}'."); + if let Some(task_id) = TabularPurgeTask::schedule_task::<C>( /* ... */ ) + .await? { + tracing::debug!("Queued purge task {task_id} for dropped view '{view_id}'."); + } else { + tracing::debug!("Queued purge task for dropped view '{view_id}'."); + }crates/lakekeeper/src/api/management/v1/warehouse/mod.rs (1)
818-823: Minor: avoid no-op cancellation when there are no tasksGuard the cancel_scheduled_tasks call to skip an extra DB round-trip when nothing to cancel.
- TabularExpirationTask::cancel_scheduled_tasks::<C>( - TaskFilter::TaskIds(undrop_tabular_responses.iter().map(|r| r.task_id).collect()), - transaction.transaction(), - false, - ) - .await?; + let task_ids: Vec<_> = undrop_tabular_responses.iter().map(|r| r.task_id).collect(); + if !task_ids.is_empty() { + TabularExpirationTask::cancel_scheduled_tasks::<C>( + TaskFilter::TaskIds(task_ids), + transaction.transaction(), + false, + ) + .await?; + }crates/lakekeeper/src/catalog/namespace.rs (1)
495-509: Namespace recursive drop: purge scheduling — LGTM, optional: log TaskIdsScheduling per child is correct. Consider logging returned TaskIds for traceability.
- TabularPurgeTask::schedule_task::<C>( /* ... */ ) - .await?; + if let Some(task_id) = TabularPurgeTask::schedule_task::<C>( /* ... */ ).await? { + tracing::debug!("Queued purge task {task_id} for tabular {tabular_id}"); + }crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs (1)
1790-1804: Capture and assert the scheduled task id (nit).
schedule_task returns Option; asserting it’s Some will catch unexpected de-duplication.Apply this diff:
- let _ = TabularExpirationTask::schedule_task::<PostgresCatalog>( + let scheduled = TabularExpirationTask::schedule_task::<PostgresCatalog>( TaskMetadata { @@ ) .await .unwrap(); + assert!(scheduled.is_some(), "expiration task was not enqueued");crates/lakekeeper/src/catalog/tables.rs (2)
758-772: Purge scheduling path looks correct.
Passing EntityId::Tabular, warehouse_id, and payload via TabularPurgeTask::schedule_task is aligned with the new contract. Consider logging the returned TaskId for traceability.
786-804: Soft-delete expiration scheduling looks correct.
schedule_for uses the profile’s expiration_seconds; good. Same nit as above about capturing TaskId for observability.crates/lakekeeper/src/tests/tasks.rs (2)
81-81: Prefer expect over unwrap in tests (better failure messages).Apply this diff:
- let config = task.config.unwrap(); + let config = task.config.expect("queue config missing on picked task");
85-86: Minor: avoid shadowing ‘task’.
Renaming prevents confusion between the wrapper and its data.Apply this diff:
- let task = task.data; - assert_eq!(task, task_state); + let data = task.data; + assert_eq!(data, task_state);crates/lakekeeper/src/implementations/postgres/task_queues.rs (3)
462-470: All-queues support: clarify error/log messages and avoid sentinel “” queue name.
Passing "" when queue_name is None makes logs like “Failed to cancel Tasks…”. Prefer branching messages on Option<&str>.
497-508: Predicate uses ‘OR $5/$6’ booleans, which can devolve into table scans.
When force_delete_running_tasks=true or queue_name=None, (status = $3 OR $5) and (queue_name = $2 OR $6) short-circuit to TRUE, reducing selectivity and likely bypassing indexes. Consider two explicit query variants (per-queue vs all-queues; scheduled-only vs scheduled|running|should-stop) to keep predicates sargable. Also future new statuses would be deleted unintentionally when force=true due to the unconditional OR.
547-559: Same predicate concern for TaskIds path.
Mirror the refinement here; restrict to specific statuses when force=true (e.g., IN (Running, ShouldStop)) instead of OR TRUE. Add tests covering:
- cancel all queues (queue_name=None)
- force=true on running tasks
- ensure scheduled-only unaffected when force=false.
crates/lakekeeper/src/service/task_queue/task_queues_runner.rs (2)
72-109: select_all loop is correct; consider JoinSet for simplicity.Current select_all + swap_remove is fine. If you want simpler bookkeeping and task abort-on-drop semantics, JoinSet can reduce allocations of mut_handles per tick.
Apply if desired:
- loop { - if workers.is_empty() { return; } - let mut_handles: Vec<_> = workers.iter_mut().map(|w| &mut w.handle).collect(); - let (result, index, _) = futures::future::select_all(mut_handles).await; - let worker = workers.swap_remove(index); + let mut join_set = tokio::task::JoinSet::new(); + for w in workers.drain(..) { + join_set.spawn_named(format!("{}-{}", w.queue_name, w.worker_id), w.handle); + } + while let Some(result) = join_set.join_next().await { + // keep a side map if you need (queue_name, worker_id) metadata + // ...
111-127: Restart gating is right; add final drain on cancellation.Minor: after cancellation, you could log remaining workers completion and exit to make shutdown logs clearer. Not required.
crates/lakekeeper/src/service/catalog.rs (3)
816-821: Simplifyenqueue_taskdefault impl (avoid extra Ok + ?).Current wrapping is redundant.
Apply:
- ) -> Result<Option<TaskId>> { - Ok(Self::enqueue_tasks(queue_name, vec![task], transaction) - .await - .map(|v| v.into_iter().next())?) - } + ) -> Result<Option<TaskId>> { + Self::enqueue_tasks(queue_name, vec![task], transaction) + .await + .map(|v| v.into_iter().next()) + }
812-816: Docs inconsistency: “running or pending” vs “single active”.Unify wording to “single active” in both places.
Apply:
- /// There can only be a single task running or pending for a (entity_id, queue_name) tuple. + /// There can only be a single active task for an (entity_id, queue_name) tuple.And keep the same phrase in the single-task variant (already correct).
Also applies to: 824-825
848-852: Typo: “hearbeat” → “heartbeat”.Apply:
- /// Checks task state and sends a hearbeat. + /// Checks task state and sends a heartbeat.crates/lakekeeper/src/service/task_queue/mod.rs (1)
395-403: Grammar: “an failure” → “a failure”.Tiny polish in public docs.
Apply:
- /// Records an failure for a task in the catalog, updating its status and retry count. + /// Records a failure for a task in the catalog, updating its status and retry count.crates/lakekeeper/src/service/task_queue/task_registry.rs (1)
144-151: Minor nit: avoid extra allocation for type name.
T::name()already returnsCow; you can pass it directly.Apply:
- utoipa_type_name: T::name().to_string().into(), + utoipa_type_name: T::name(),Also applies to: 286-294
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (16)
crates/lakekeeper/src/api/management/v1/warehouse/mod.rs(2 hunks)crates/lakekeeper/src/catalog/namespace.rs(2 hunks)crates/lakekeeper/src/catalog/tables.rs(7 hunks)crates/lakekeeper/src/catalog/views/drop.rs(3 hunks)crates/lakekeeper/src/implementations/postgres/catalog.rs(4 hunks)crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs(2 hunks)crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs(2 hunks)crates/lakekeeper/src/implementations/postgres/tabular/view/mod.rs(2 hunks)crates/lakekeeper/src/implementations/postgres/task_queues.rs(4 hunks)crates/lakekeeper/src/service/catalog.rs(5 hunks)crates/lakekeeper/src/service/task_queue/mod.rs(15 hunks)crates/lakekeeper/src/service/task_queue/tabular_expiration_queue.rs(5 hunks)crates/lakekeeper/src/service/task_queue/tabular_purge_queue.rs(3 hunks)crates/lakekeeper/src/service/task_queue/task_queues_runner.rs(1 hunks)crates/lakekeeper/src/service/task_queue/task_registry.rs(1 hunks)crates/lakekeeper/src/tests/tasks.rs(2 hunks)
🧰 Additional context used
🧬 Code graph analysis (15)
crates/lakekeeper/src/implementations/postgres/task_queues.rs (3)
crates/lakekeeper/src/implementations/postgres/catalog.rs (1)
cancel_scheduled_tasks(753-760)crates/lakekeeper/src/service/catalog.rs (1)
cancel_scheduled_tasks(840-845)crates/lakekeeper/src/service/task_queue/mod.rs (3)
cancel_scheduled_tasks(271-289)queue_name(46-46)queue_name(193-195)
crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs (1)
crates/iceberg-ext/src/catalog/rest/error.rs (1)
not_found(182-188)
crates/lakekeeper/src/service/task_queue/task_registry.rs (4)
crates/lakekeeper/src/service/task_queue/mod.rs (6)
fmt(56-58)fmt(661-666)queue_name(46-46)queue_name(193-195)tabular_expiration_queue(771-771)queues(720-721)crates/lakekeeper/src/service/task_queue/task_queues_runner.rs (1)
fmt(21-26)crates/lakekeeper/src/service/task_queue/tabular_expiration_queue.rs (3)
queue_name(46-48)tabular_purge_queue(198-198)tabular_expiration_worker(51-86)crates/lakekeeper/src/service/task_queue/tabular_purge_queue.rs (2)
queue_name(40-42)tabular_purge_worker(45-78)
crates/lakekeeper/src/service/task_queue/tabular_purge_queue.rs (3)
crates/lakekeeper/src/catalog/namespace.rs (1)
TabularPurgeTask(495-495)crates/lakekeeper/src/catalog/tables.rs (1)
TabularPurgeTask(759-759)crates/lakekeeper/src/catalog/views/drop.rs (1)
TabularPurgeTask(72-72)
crates/lakekeeper/src/catalog/views/drop.rs (1)
crates/lakekeeper/src/service/task_queue/mod.rs (1)
schedule_task(204-228)
crates/lakekeeper/src/catalog/tables.rs (8)
crates/lakekeeper/src/service/task_queue/mod.rs (2)
tabular_expiration_queue(771-771)schedule_task(204-228)crates/lakekeeper/src/service/task_queue/task_registry.rs (2)
tabular_expiration_queue(187-187)tabular_purge_queue(207-207)crates/lakekeeper/src/api/management/v1/warehouse/mod.rs (1)
TabularExpirationTask(819-819)crates/lakekeeper/src/catalog/views/drop.rs (2)
TabularExpirationTask(99-99)TabularPurgeTask(72-72)crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs (1)
TabularExpirationTask(1790-1790)crates/lakekeeper/src/implementations/postgres/tabular/view/mod.rs (1)
TabularExpirationTask(824-824)crates/lakekeeper/src/service/task_queue/tabular_expiration_queue.rs (1)
tabular_purge_queue(198-198)crates/lakekeeper/src/catalog/namespace.rs (1)
TabularPurgeTask(495-495)
crates/lakekeeper/src/catalog/namespace.rs (4)
crates/lakekeeper/src/implementations/postgres/catalog.rs (1)
cancel_scheduled_tasks(753-760)crates/lakekeeper/src/implementations/postgres/task_queues.rs (1)
cancel_scheduled_tasks(462-570)crates/lakekeeper/src/service/catalog.rs (1)
cancel_scheduled_tasks(840-845)crates/lakekeeper/src/service/task_queue/mod.rs (2)
cancel_scheduled_tasks(271-289)schedule_task(204-228)
crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs (1)
crates/lakekeeper/src/service/task_queue/mod.rs (1)
schedule_task(204-228)
crates/lakekeeper/src/api/management/v1/warehouse/mod.rs (4)
crates/lakekeeper/src/service/task_queue/mod.rs (1)
cancel_scheduled_tasks(271-289)crates/lakekeeper/src/service/catalog.rs (3)
clear_tabular_deleted_at(469-473)transaction(61-61)cancel_scheduled_tasks(840-845)crates/lakekeeper/src/implementations/postgres/tabular/mod.rs (1)
clear_tabular_deleted_at(682-756)crates/lakekeeper/src/implementations/postgres/task_queues.rs (1)
cancel_scheduled_tasks(462-570)
crates/lakekeeper/src/service/task_queue/tabular_expiration_queue.rs (10)
crates/lakekeeper/src/api/management/v1/warehouse/mod.rs (1)
TabularExpirationTask(819-819)crates/lakekeeper/src/catalog/tables.rs (2)
TabularExpirationTask(786-786)TabularPurgeTask(759-759)crates/lakekeeper/src/catalog/views/drop.rs (2)
TabularExpirationTask(99-99)TabularPurgeTask(72-72)crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs (1)
TabularExpirationTask(1790-1790)crates/lakekeeper/src/implementations/postgres/tabular/view/mod.rs (1)
TabularExpirationTask(824-824)crates/lakekeeper/src/service/task_queue/tabular_purge_queue.rs (3)
SpecializedTask(53-53)task(91-91)task(99-99)crates/lakekeeper/src/tests/tasks.rs (1)
SpecializedTask(74-76)crates/lakekeeper/src/service/task_queue/mod.rs (3)
task(308-308)task(320-320)schedule_task(204-228)crates/lakekeeper/src/service/task_queue/task_registry.rs (1)
tabular_purge_queue(207-207)crates/lakekeeper/src/catalog/namespace.rs (1)
TabularPurgeTask(495-495)
crates/lakekeeper/src/tests/tasks.rs (3)
crates/lakekeeper/src/service/task_queue/mod.rs (3)
task(308-308)task(320-320)pick_new_task(296-344)crates/lakekeeper/src/implementations/postgres/catalog.rs (1)
pick_new_task(701-712)crates/lakekeeper/src/service/catalog.rs (1)
pick_new_task(791-795)
crates/lakekeeper/src/implementations/postgres/catalog.rs (3)
crates/lakekeeper/src/implementations/postgres/task_queues.rs (4)
cancel_scheduled_tasks(462-570)check_task(433-452)get_task_queue_config(330-362)queue_task_batch(36-132)crates/lakekeeper/src/service/catalog.rs (5)
cancel_scheduled_tasks(840-845)get_task_queue_config(870-874)clear_tabular_deleted_at(469-473)enqueue_tasks(816-820)transaction(61-61)crates/lakekeeper/src/implementations/postgres/tabular/mod.rs (1)
clear_tabular_deleted_at(682-756)
crates/lakekeeper/src/implementations/postgres/tabular/view/mod.rs (1)
crates/lakekeeper/src/service/task_queue/mod.rs (1)
schedule_task(204-228)
crates/lakekeeper/src/service/task_queue/mod.rs (6)
crates/lakekeeper/src/service/task_queue/task_queues_runner.rs (1)
fmt(21-26)crates/lakekeeper/src/service/task_queue/task_registry.rs (7)
fmt(28-33)fmt(84-89)fmt(118-124)task_queues_runner(246-271)queue_name(316-318)queue_name(328-330)new(129-134)crates/lakekeeper/src/service/task_queue/tabular_expiration_queue.rs (1)
queue_name(46-48)crates/lakekeeper/src/implementations/postgres/task_queues.rs (1)
cancel_scheduled_tasks(462-570)crates/lakekeeper/src/service/catalog.rs (6)
transaction(61-61)enqueue_task(826-834)enqueue_tasks(816-820)cancel_scheduled_tasks(840-845)begin_write(53-53)record_task_failure(803-808)crates/lakekeeper/src/implementations/postgres/catalog.rs (3)
enqueue_tasks(738-751)cancel_scheduled_tasks(753-760)record_task_failure(723-736)
crates/lakekeeper/src/service/catalog.rs (3)
crates/lakekeeper/src/implementations/postgres/catalog.rs (6)
clear_tabular_deleted_at(250-261)pick_new_task(701-712)record_task_success(714-721)record_task_failure(723-736)enqueue_tasks(738-751)cancel_scheduled_tasks(753-760)crates/lakekeeper/src/implementations/postgres/tabular/mod.rs (1)
clear_tabular_deleted_at(682-756)crates/lakekeeper/src/implementations/postgres/task_queues.rs (1)
cancel_scheduled_tasks(462-570)
🔇 Additional comments (32)
crates/lakekeeper/src/implementations/postgres/tabular/table/commit.rs (2)
3-6: Standardized error codes import via ErrorKind — LGTMImporting
ErrorKindaligns this module with the project-wide error code standardization.
215-218: No downstream changes needed for TableNotFound usageI searched the entire codebase for any hard-coded 400 assertions or string matches against “TableNotFound” and found none. All existing uses of
ErrorKind::TableNotFoundinvokeErrorModel::not_found(...), which already maps to HTTP 404. Tests incrates/lakekeeper/src/catalog/tables.rsare asserting 400 only for location-conflict errors, not for table-not-found scenarios.• No occurrences of assertions on status 400 for missing tables
• No hard-coded"TableNotFound"string matches in tests or handlers
• AllErrorModel::not_found(..., ErrorKind::TableNotFound)calls uniformly produce 404crates/lakekeeper/src/implementations/postgres/tabular/view/mod.rs (1)
561-565: Imports switched to task-based scheduling — LGTMThe test now imports TabularExpirationTask and related types. Matches the new scheduling surface.
crates/lakekeeper/src/service/task_queue/tabular_purge_queue.rs (5)
26-27: Expose TabularPurgeTask alias — LGTMPublic alias improves ergonomics for callers.
29-33: Make TabularPurgePayload public — LGTMStruct public with crate-visible fields keeps external API minimal while enabling intra-crate construction.
37-38: Make PurgeQueueConfig public — LGTMNeeded for API schema/registration visibility.
80-85: Signature refactor to &TabularPurgeTask — LGTMClearer API and tighter typing.
111-116: Refactor purge() to take &TabularPurgeTask — LGTMMatches the worker callsite and simplifies parameter passing.
crates/lakekeeper/src/catalog/views/drop.rs (2)
15-18: Adopt new task types in imports — LGTMImports align with new SpecializedTask-based API.
99-116: Soft-delete expiration scheduling via TabularExpirationTask — LGTMschedule_for uses warehouse profile duration correctly; deletion_kind respects purge_requested.
crates/lakekeeper/src/api/management/v1/warehouse/mod.rs (1)
34-35: Import TabularExpirationTask and TaskFilter — LGTMMatches new cancellation API.
crates/lakekeeper/src/catalog/namespace.rs (2)
28-30: Import new purge scheduling types — LGTMConsistent with repo-wide refactor.
481-487: Confirm scope of task cancellationYou cancel by TaskIds across all queues (queue_name = None). If drop_info.open_tasks can include tasks from multiple queues this is intended; if it’s guaranteed to only contain expiration tasks, scoping to that queue could reduce scan range.
Would you like me to switch to passing Some("tabular_expiration") here if open_tasks are guaranteed from that queue?
crates/lakekeeper/src/implementations/postgres/tabular/table/mod.rs (1)
888-892: Good migration to SpecializedTask-based scheduling in tests.
Importing TabularExpirationTask/Payload from service::task_queue matches the new API surface.crates/lakekeeper/src/catalog/tables.rs (2)
57-60: Consistent task-queue usage.
Using TabularExpirationTask/TabularPurgeTask centralizes scheduling; reduces catalog-surface coupling.
1795-1799: No internal dependencies on old error type strings foundAll internal
ErrorModelinstances now useErrorKind::TableNotFound.to_string(), and a repository-wide search shows no remaining references to the previous string literals.
- No occurrences of
"TableNotFoundOrStaged"were found in code or tests.- All
error.typecomparisons now useErrorKind::TableNotFound.to_string()in:
crates/lakekeeper/src/service/task_queue/tabular_expiration_queue.rs(lines 142, 169)crates/lakekeeper/src/catalog/tables.rs(lines 1795–1799, 1806–1808, 1829–1831)- Postgres implementation modules under
crates/lakekeeper/src/implementations/postgres/tabular/…This standardization is safe for internal consumers. If external clients depend on these error-type strings, please update their expectations and document the change (e.g., in the changelog or by bumping the version).
crates/lakekeeper/src/tests/tasks.rs (1)
73-77: LGTM: updated to new pick_new_task wrapper.
The switch to SpecializedTask::<Config, TestTaskData>::pick_new_task:: matches the refactor.crates/lakekeeper/src/service/task_queue/tabular_expiration_queue.rs (4)
30-31: Public alias is a nice ergonomic improvement.
Reduces repetitive type parameters across call sites.
34-37: Payload visibility: struct pub with pub(crate) fields is a good balance.
External crates can’t construct arbitrary payloads; internal modules can.
43-49: Making ExpirationQueueConfig public aligns with OpenAPI exposure via API_CONFIG.
No concerns.
198-211: Chaining purge via TabularPurgeTask with parent_task_id is correct.
Maintains lineage; good error enrichment on failure.crates/lakekeeper/src/service/task_queue/task_queues_runner.rs (1)
50-70: Worker spawn/supervision looks solid.Clean fan-out across queues, per-worker logging, and cancellation token cloning are correct. Nice custom Debug redaction too.
crates/lakekeeper/src/implementations/postgres/catalog.rs (4)
53-55: API import rename is aligned.Switch to
cancel_scheduled_tasksmatches the new surface.
250-261: Efficient id conversion; OK.Mapping
&[TableId]toVec<Uuid>viaiter().map(|i| **i)is correct and clear.
738-751: Batch enqueue early-exit + tracing: good.Empty-input fast path and returning only actually queued IDs mirrors DB semantics.
753-760: Queue-name Option passthrough is correct.Ordering of args matches
task_queues::cancel_scheduled_tasks.crates/lakekeeper/src/service/catalog.rs (1)
469-474: Rename alignment looks good.Trait method
clear_tabular_deleted_atmatches the Postgres implementation.crates/lakekeeper/src/service/task_queue/mod.rs (3)
1-16: MSRV check: usage ofstd::sync::LazyLock.Ensure your MSRV includes
LazyLock(stable in recent Rust). If not, useOnceLockoronce_cell.Would you like me to prep a fallback patch using
OnceLock?Also applies to: 26-33
267-289: Excellent: queue-scoped cancellation helper.API is ergonomic and nicely instruments failures with appended detail.
346-393: Polling loop is robust.Good cancellation handling, backoff with jitter, and error logging.
crates/lakekeeper/src/service/task_queue/task_registry.rs (2)
244-271: Runner construction is clean.The registry/runner split with redacted Debug is well-structured. LGTM.
296-437: Good test ensuring shared interior mutable state.Covers validator exposure and queue name propagation across instances.
✅ PR Title Formatted CorrectlyThe title of this PR match the correct format. Thank you! |
There was a problem hiding this comment.
Actionable comments posted: 0
♻️ Duplicate comments (1)
crates/lakekeeper/src/service/task_queue/tabular_purge_queue.rs (1)
45-56: Fix for 'static future capture via Duration by value — good.Taking poll_interval: Duration by value and only borrowing it at the call site avoids non-'static borrows in the worker future. Matches the prior guidance.
🧹 Nitpick comments (8)
.sqlx/query-b4d4c0aa23337a502efb9ab384cb30a7e856fb1fbed90ff62ee8ff965a809c59.json (1)
3-3: Clarify boolean “all queues/statuses” guards and reduce planner ambiguity.Rewrite the predicates to the short-circuit form for readability and plan stability (same semantics):
- WHERE (status = $3 OR $5) AND warehouse_id = $1 AND (queue_name = $2 OR $6) + WHERE warehouse_id = $1 + AND (($5 OR status = $3)) + AND (($6 OR queue_name = $2)) ) - DELETE FROM task - WHERE (status = $3 OR $5) AND warehouse_id = $1 AND (queue_name = $2 OR $6) + DELETE FROM task + WHERE warehouse_id = $1 + AND (($5 OR status = $3)) + AND (($6 OR queue_name = $2)).sqlx/query-c853dd4f9c736d06bf347de4f79e144ce5a5c32116fa625214ee221c448305d2.json (1)
3-3: Use short-circuit boolean guards for clarity (mirrors the other query).Same semantics, clearer intent:
- WHERE (status = $3 OR $6) AND task_id = ANY($1) AND (queue_name = $4 OR $5) + WHERE task_id = ANY($1) + AND (($6 OR status = $3)) + AND (($5 OR queue_name = $4)) ) - DELETE FROM task - WHERE (status = $3 OR $6) AND (queue_name = $4 OR $5) - AND task_id = ANY($1) + DELETE FROM task + WHERE task_id = ANY($1) + AND (($6 OR status = $3)) + AND (($5 OR queue_name = $4))crates/lakekeeper/src/service/task_queue/tabular_purge_queue.rs (2)
29-32: Payload visibility: confirm external scheduling needs.TabularPurgePayload is pub but fields are crate-private. If external crates should schedule purge tasks directly, consider exposing a constructor/new() or making fields public.
#[derive(Debug, Clone, Serialize, Deserialize)] -pub struct TabularPurgePayload { +pub struct TabularPurgePayload { pub(crate) tabular_location: String, pub(crate) tabular_type: TabularType, } +impl TabularPurgePayload { + pub fn new(tabular_location: impl Into<String>, tabular_type: TabularType) -> Self { + Self { tabular_location: tabular_location.into(), tabular_type } + } +}
52-56: Minor readability: use the alias for polling.Use TabularPurgeTask alias to reduce verbosity.
- let task = - SpecializedTask::<PurgeQueueConfig, TabularPurgePayload>::poll_for_new_task::<C>( + let task = TabularPurgeTask::poll_for_new_task::<C>( catalog_state.clone(), &poll_interval, cancellation_token.clone(), )crates/lakekeeper/src/service/task_queue/task_registry.rs (4)
136-169: Prevent silent double-registration.register_queue currently overwrites existing entries if called twice for the same queue. At minimum, warn; optionally return a Result.
- self.registered_queues.write().await.insert( - queue_name, - RegisteredQueue { api_config, schema_validator_fn }, - ); + if self.registered_queues.write().await + .insert(queue_name, RegisteredQueue { api_config, schema_validator_fn }) + .is_some() + { + tracing::warn!("Queue `{}` was already registered; overwriting.", queue_name); + } - self.task_workers.write().await.insert( - queue_name, - RegisteredTaskQueueWorker { worker_fn, num_workers }, - ); + if self.task_workers.write().await + .insert(queue_name, RegisteredTaskQueueWorker { worker_fn, num_workers }) + .is_some() + { + tracing::warn!("Workers for `{}` were already registered; overwriting.", queue_name); + }
179-196: Trim redundant clones and minor closure cleanup.authorizer.clone() and catalog_state_clone.clone() are taken twice; also remove extra braces around async.
- worker_fn: Arc::new(move |cancellation_token| { - let authorizer = authorizer.clone(); - let catalog_state_clone = catalog_state_clone.clone(); - Box::pin({ - async move { - tabular_expiration_queue::tabular_expiration_worker::<C, A>( - catalog_state_clone.clone(), - authorizer.clone(), - poll_interval, - cancellation_token, - ) - .await; - } - }) - }), + worker_fn: Arc::new(move |cancellation_token| { + let auth = authorizer.clone(); + let cat = catalog_state_clone.clone(); + Box::pin(async move { + tabular_expiration_queue::tabular_expiration_worker::<C, A>( + cat, + auth, + poll_interval, + cancellation_token, + ).await; + }) + }),
201-215: Apply the same cleanup to the purge worker.Mirror the reduced clones and remove the extra async braces.
- worker_fn: Arc::new(move |cancellation_token| { - let catalog_state_clone = catalog_state.clone(); - let secret_store = secret_store.clone(); - Box::pin(async move { - tabular_purge_queue::tabular_purge_worker::<C, S>( - catalog_state_clone.clone(), - secret_store.clone(), - poll_interval, - cancellation_token, - ) - .await; - }) - }), + worker_fn: Arc::new(move |cancellation_token| { + let cat = catalog_state.clone(); + let secrets = secret_store.clone(); + Box::pin(async move { + tabular_purge_queue::tabular_purge_worker::<C, S>( + cat, + secrets, + poll_interval, + cancellation_token, + ).await; + }) + }),
246-271: Runner snapshot consistency.We read queues and workers under separate locks; transient mismatch is acceptable, but if you want a consistent snapshot, consider storing both in a single struct behind one lock.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (6)
.sqlx/query-b4d4c0aa23337a502efb9ab384cb30a7e856fb1fbed90ff62ee8ff965a809c59.json(2 hunks).sqlx/query-c853dd4f9c736d06bf347de4f79e144ce5a5c32116fa625214ee221c448305d2.json(2 hunks)crates/lakekeeper/src/implementations/postgres/tabular/view/mod.rs(2 hunks)crates/lakekeeper/src/service/task_queue/tabular_expiration_queue.rs(6 hunks)crates/lakekeeper/src/service/task_queue/tabular_purge_queue.rs(4 hunks)crates/lakekeeper/src/service/task_queue/task_registry.rs(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
- crates/lakekeeper/src/implementations/postgres/tabular/view/mod.rs
- crates/lakekeeper/src/service/task_queue/tabular_expiration_queue.rs
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-08-14T11:35:37.248Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1285
File: crates/lakekeeper/src/service/storage/gcs/mod.rs:485-491
Timestamp: 2025-08-14T11:35:37.248Z
Learning: In the Lakekeeper codebase, `Box::pin` is intentionally used around large futures (like `validate_access` calls) as an optimization technique to move the future data to the heap, reducing stack usage and improving efficiency during async operations.
Applied to files:
crates/lakekeeper/src/service/task_queue/task_registry.rs
🧬 Code graph analysis (2)
crates/lakekeeper/src/service/task_queue/tabular_purge_queue.rs (5)
crates/lakekeeper/src/catalog/views/drop.rs (1)
TabularPurgeTask(72-72)crates/lakekeeper/src/catalog/namespace.rs (1)
TabularPurgeTask(495-495)crates/lakekeeper/src/catalog/tables.rs (1)
TabularPurgeTask(759-759)crates/lakekeeper/src/service/task_queue/tabular_expiration_queue.rs (3)
SpecializedTask(58-58)task(106-106)task(222-222)crates/lakekeeper/src/service/task_queue/mod.rs (3)
task(308-308)task(320-320)poll_for_new_task(348-393)
crates/lakekeeper/src/service/task_queue/task_registry.rs (4)
crates/lakekeeper/src/service/task_queue/task_queues_runner.rs (1)
fmt(21-26)crates/lakekeeper/src/service/task_queue/mod.rs (6)
fmt(56-58)fmt(661-666)queue_name(46-46)queue_name(193-195)tabular_expiration_queue(771-771)queues(720-721)crates/lakekeeper/src/service/task_queue/tabular_expiration_queue.rs (3)
queue_name(46-48)tabular_purge_queue(198-198)tabular_expiration_worker(51-86)crates/lakekeeper/src/service/task_queue/tabular_purge_queue.rs (2)
queue_name(40-42)tabular_purge_worker(45-78)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
- GitHub Check: docker / docker
- GitHub Check: docker / docker
- GitHub Check: docker / docker
- GitHub Check: docker / docker
- GitHub Check: test
- GitHub Check: clippy
- GitHub Check: sqlx-check
- GitHub Check: check-generated-openapi-matches
🔇 Additional comments (7)
.sqlx/query-b4d4c0aa23337a502efb9ab384cb30a7e856fb1fbed90ff62ee8ff965a809c59.json (2)
4-37: Verify call sites don’t accidentally broaden deletes.Double-check that:
- $5 (all-status) is only true when you intend to delete tasks regardless of intermediate status.
- $6 (all-queues) is only true when you intend to operate across all queues.
Add/ensure an integration test that:
- with $5=false,$6=false only targeted rows are logged/deleted,
- with $5=true,$6=false deletes all statuses for a single queue,
- with $5=false,$6=true deletes only the specified status across all queues,
- with both true deletes all for the warehouse.
Would you like me to draft these tests against the Postgres impl?
3-3: Atomic log+delete pattern LGTM.CTE-insert for audit followed by delete in one statement is good.
.sqlx/query-c853dd4f9c736d06bf347de4f79e144ce5a5c32116fa625214ee221c448305d2.json (1)
3-3: Confirmed:task_idis globally unique across warehousesThe
tasktable definestask_idas its singular primary key (UUID) at creation, ensuring no two tasks—regardless of warehouse—can share the sametask_id.
• Migration 20240899175225_tabular_expiration.sql, lines 1–5:create table task ( task_id uuid primary key, warehouse_id uuid not null, … )crates/lakekeeper/src/service/task_queue/tabular_purge_queue.rs (3)
26-27: Public alias improves API ergonomics.The TabularPurgeTask type alias is a nice simplification.
80-109: Instrumented flow and success/failure recording look solid.Clear logs and correct status recording.
111-176: Transaction + IO sequencing is sensible.Read-only transaction for metadata then commit before IO is appropriate. Error mapping retains context.
crates/lakekeeper/src/service/task_queue/task_registry.rs (1)
36-74: API surface LGTM.validate_config_fn/api_config/queue_names provide the right primitives, and the shared interior mutability is tested.
* feat: Publish images to Dockerhub (lakekeeper#1274) * feat: Update UI to 0.9.0 with multi-project support (lakekeeper#1275) * chore: release 0.9.4 Release-As: 0.9.4 * chore: release main (lakekeeper#1262) * chore(ci): Fix Dockerhub login * chore(docs): Improve developer guide (lakekeeper#1265) * chore(docs): add info regarding `view_version`'s internal representation (lakekeeper#1261) * chore(docs): Architecture clarify Secret Store (lakekeeper#1284) * fix: Update Limes to 0.2.2 - Fixes compilation issue due to breaking `jwks_client_rs` change (lakekeeper#1282) * fix: Update Limes to 0.2.2 * increase min rust version * chore: release 0.9.5 Release-As: 0.9.5 * chore: release main (lakekeeper#1286) * chore: enable changelog sections for release-please (lakekeeper#1264) k * fix(deps): update rust crate rand to v0.9.2 (lakekeeper#1252) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate async-channel to v2.5.0 (lakekeeper#1225) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency mkdocs-material to v9.6.17 (lakekeeper#1289) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate anyhow to v1.0.99 (lakekeeper#1290) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore: Remove bitnami images (lakekeeper#1288) * feat!: Move to Lakekeeper IO based on hyperscaler SDKs (lakekeeper#1285) * chore(deps): update rust crate reqwest to v0.12.23 (lakekeeper#1294) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(docs): Improve Cloud storage test docs * fix: accept "disable" as PG sslmode as documented (lakekeeper#1303) * feat: Simplify task interface, re-exports, enable delete-after-commit (lakekeeper#1302) * feat: Introduce `RequestMetadata` for Internal Principals which bypass AuthZ (lakekeeper#1306) * chore(deps): update azure/setup-helm action to v4.3.1 (lakekeeper#1299) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(test): use nextest filterset instead of needs_env_var (lakekeeper#1304) * chore(deps): update rust crate openssl-src to v300.5.2 (lakekeeper#1292) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate async-compression to v0.4.28 (lakekeeper#1311) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate thiserror to v2.0.16 (lakekeeper#1296) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Provide `ApiContext` to externally registered tasks (lakekeeper#1307) * feat!: Simplify Task interface, extend SpecializedTask interface (lakekeeper#1310) * feat: Improve authorizer `are_allowed_*` batch check signature (lakekeeper#1315) * chore(authz): Enforce use of AuthZ decisions with #[must_use] (lakekeeper#1317) * feat: Task Management APIs (lakekeeper#1316) * chore(deps): update rust crate tracing-subscriber to v0.3.20 [security] (lakekeeper#1318) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Add `RunNow` and `RunAt` to Controls for Tasks (lakekeeper#1322) * chore(deps): update rust crate tokio-util to v0.7.16 (lakekeeper#1313) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(docs): Improve Entra ID docs (lakekeeper#1325) * chore(docs): Improve Upgrades & Migration docs (lakekeeper#1326) * feat: Add tasks heartbeat with Catalog state (lakekeeper#1324) * ci: add configuration for CodeRabbit reviews (lakekeeper#1327) * feat: Add optional STS session-tags in S3 STS requests for ABAC authorization (lakekeeper#1230) * feat: Random Server IDs (lakekeeper#1328) * chore(deps): update rust crate percent-encoding to v2.3.2 (lakekeeper#1312) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat(authz): Deprecate Permission Endpoints for Tables without WarehouseIDs (lakekeeper#1334) * fix: Tasks endpoints in router (lakekeeper#1335) * feat(ci): add nextest profile ci_no_secrets for external PRs (lakekeeper#1333) * chore(deps): update rust crate chrono to v0.4.42 (lakekeeper#1331) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore: Pin examples duckdb version to 1.3 (lakekeeper#1343) * feat!: Require warehouse_id when checking permissions on views or tables via ID (lakekeeper#1340) * fix: migrate away from bitnami in unittest.yml (lakekeeper#1344) * chore: Remove coderabitt config * fix(docs): Fix inconsistent URL format in README (lakekeeper#1345) Co-authored-by: Christian <[email protected]> * feat: Remove serde_yaml & serde_yml (lakekeeper#1341) * feat!: add `warehouse_id` to PKs of all `table_*` and `view_*` tables (lakekeeper#1254) * feat: Minor namespace join performance improvements * fix: Warehouse permissions are directly used for task retrieval & control (lakekeeper#1347) * fix: Potential Race Condition when undropping Tabulars (lakekeeper#1342) * fix: table rename authz and error handling (lakekeeper#1346) Co-authored-by: Andre Luis Anastacio <[email protected]> * chore(deps): update rust crate google-cloud-auth to v1.1.2 (lakekeeper#1337) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update rust crate time to v0.3.44 (lakekeeper#1349) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency mkdocs-material to v9.6.20 (lakekeeper#1309) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * feat: Set ServerID during migration (lakekeeper#1348) * chore(deps): Remove utoipa fork (lakekeeper#1352) * chore(deps): update rust crate serde_with to v3.14.1 (lakekeeper#1351) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate url to v2.5.7 (lakekeeper#1354) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate async-compression to v0.4.30 (lakekeeper#1323) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update rust crate serde_json to v1.0.145 (lakekeeper#1250) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update strum monorepo to v0.27.2 (lakekeeper#1251) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update serde monorepo to v1.0.226 (lakekeeper#1355) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate clap to v4.5.48 (lakekeeper#1356) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Add Entity Names to Tasks (lakekeeper#1353) * fix: case insensitivity of catalog endpoints (lakekeeper#1338) * fix: Improve delete_warehouse error message for active tasks * chore(deps): update rust crate tempfile to v3.22.0 (lakekeeper#1359) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update rust crate axum-prometheus to 0.9.0 (lakekeeper#1358) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: PgSslMode not supported error string * feat(authz)!: add OpenFGA schema v4 and v3->v4 migration (lakekeeper#1314) Co-authored-by: Christian <[email protected]> Co-authored-by: Christian Thiel <[email protected]> * chore(deps): update rust crate uuid to v1.18.1 (lakekeeper#1362) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency markdown-grid-tables to v0.6.0 (lakekeeper#1357) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate anyhow to v1.0.100 (lakekeeper#1350) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: clippy * chore(deps): update rust crate moka to v0.12.11 (lakekeeper#1365) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate tempfile to v3.23.0 (lakekeeper#1367) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate async-nats to 0.43.0 (lakekeeper#1366) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update actions/setup-node action to v5 (lakekeeper#1371) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update actions/checkout action to v5 (lakekeeper#1369) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update actions/setup-python action to v6 (lakekeeper#1372) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: V3 support (lakekeeper#1364) * chore: Set Get Task Permission to "CanGetMetadata" (lakekeeper#1376) * chore(deps): update dependency node to v22 (lakekeeper#1373) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat(authz)!: extend OpenFGA tabular entities with WarehouseId (lakekeeper#1329) --------- Co-authored-by: Christian <[email protected]> Co-authored-by: Christian Thiel <[email protected]> * feat: Add support for tasks affecting views (lakekeeper#1378) * feat(authz): Add specific Task Actions (lakekeeper#1379) * chore(tests): Test with Iceberg 1.9.2 & 1.10.0 (lakekeeper#1267) * feat: Enrich task metadata with concrete tabular type (lakekeeper#1383) * feat: Add loadTable Snapshots filter (lakekeeper#1385) * feat: add endpoint for fuzzy search of tabulars (lakekeeper#1387) * feat: Update UI to 0.10.0 (lakekeeper#1390) * feat(ui): Update UI to 0.10.1 * chore: Use lakekeeper re-exports in bin (lakekeeper#1391) * fix(tabular-search): distance and docs for `searchterm is uuid` (lakekeeper#1393) * chore(examples): Idempotent bucket creation in minimal example (lakekeeper#1386) In the case where you already have a bucket created, like the "examples" bucket, I ran into an issue where the createbuckets service fails, and this prevents lakekeeper from starting back up. This fix adds a simple minio flag to ignore buckets that already exist, making things even more user friendly * feat: Make number of workers spawned for Expiration & Purge configurable (lakekeeper#1395) * chore: release main (lakekeeper#1295) * chore: added gif to readme (lakekeeper#1396) * chore: remove unneded `#[allow(dead_code)]` (lakekeeper#1399) * fix: Use FnOnce for queue & service registration * Revert "fix: Use FnOnce for queue & service registration" This reverts commit 47b03a0. * chore(docs): Add 0.10 docs * perf(db): remove `join namespace` from `active_tabulars` view (lakekeeper#1401) * doc(db): how to connect to db and inspect schema (lakekeeper#1402) * feat: implement `OpenFgaEntity` for `ServerId` (lakekeeper#1394) * impl OpenFgaEntity * Use the implementation * fix: Use FnOnce for queue & service registration (lakekeeper#1404) * chore(deps): update dependency mkdocs-material to v9.6.21 (lakekeeper#1406) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Expose client-managed X-Iceberg-Access-Delegation (lakekeeper#1407) * fix: Use higher consistency for some OpenFGA queries (lakekeeper#1408) * feat: Improve Kubernetes Auth docs (lakekeeper#1415) * chore: release 0.10.1 Release-As: 0.10.1 * fix: Endpoint stats for Project Endpoints (lakekeeper#1412) * feat: Add create table guard to cleanup location on Failure (lakekeeper#1418) * chore: Generate ID types with Macro (lakekeeper#1419) * chore: Re-Export Tokio from lakekeeper-io create (lakekeeper#1420) * fix: Add support for `write.metadata.metrics.` Table Properties (lakekeeper#1422) * fix: Update UI to 0.10.2 (lakekeeper#1423) * chore: release main (lakekeeper#1403) * fix: Parse empty ProjectID headers as None (lakekeeper#1424) * chore: release 0.10.2 Release-As: 0.10.2 * chore: release main (lakekeeper#1425) * feat: Add `debug_migrate_before_serve` env var (lakekeeper#1426) * feat: Move OpenFGA Authorizer to separate crate (lakekeeper#1421) * chore(renovate): Group dependencies * chore(renovate): ignore additional deps * chore: Rename src/service -> src/server, trait Catalog -> CatalogStore (lakekeeper#1428) * feat(examples): add k8s iceberg sink connector (avro) (lakekeeper#1336) --------- Co-authored-by: Christian <[email protected]> * chore(ci): Fix release please (lakekeeper#1433) * feat: Expose License Information via API (lakekeeper#1432) * fix(deps): update all non-major dependencies (lakekeeper#1429) * chore(ci): Remove mgmt API version update via release-please * chore: Restructure catalog_store into multiple modules (lakekeeper#1434) * feat: Validate Downscoping works on Warehouse creation (lakekeeper#1437) * chore(ci): Fix release please * docs: Add info about installing sqlx to developer-guide.md (lakekeeper#1438) * docs: Update developer-guide.md (lakekeeper#1439) * chore(deps): update all non-major dependencies (lakekeeper#1436) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: Better normalization for ARNs in S3 Profile (lakekeeper#1441) * chore(deps): update all non-major dependencies (lakekeeper#1442) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(main): release 0.10.3 (lakekeeper#1427) * fix: Release Please CI outputs * fix(ci): Revert 0.10.3 release * chore(main): release 0.10.3 (lakekeeper#1446) * feat: Introduce CatalogWarehouseOps & CatalogNamespaceOps abstractions (lakekeeper#1440) * feat: Allow x-user-agent header (lakekeeper#1453) * feat: Table & View Ops Abstractions, Improved Error Handling (lakekeeper#1454) * fix: CORS allow access delegation & etag headers (lakekeeper#1455) * fix: Headers should be lowercase (lakekeeper#1457) * chore(tests): Add trino information_schema.tables test (lakekeeper#1456) * chore: Introduce open-api feature to gate utoipa and swagger (lakekeeper#1458) * chore: Release As 0.11 * fix: Debug assertion table identifier mismatch for signer (lakekeeper#1460) * feat: Caching Short-Term-Credentials (STC) (lakekeeper#1459) * feat: Warehouse Cache (lakekeeper#1462) * chore(deps): update actions/setup-node action to v6 (lakekeeper#1443) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Version based Warehouse Cache (lakekeeper#1465) * feat: AuthZ Server and Project Ops (lakekeeper#1471) * chore(deps): update github artifact actions (lakekeeper#1461) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore: Rename release branch pattern to rel-* * feat: Catalog returns full Namespace Hierarchy for nested Namespaces (lakekeeper#1472) --------- Co-authored-by: Christian <[email protected]> Co-authored-by: Christian Thiel <[email protected]> Co-authored-by: Dao Thanh Tung <[email protected]> Co-authored-by: Moritz Zielke <[email protected]> Co-authored-by: Baptiste Gouhoury <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dolan Antenucci <[email protected]> Co-authored-by: Anatoly Popov <[email protected]> Co-authored-by: Andre Luis Anastacio <[email protected]> Co-authored-by: Scott Haines <[email protected]> Co-authored-by: Viktor Kessler <[email protected]> Co-authored-by: Yohan Valencia <[email protected]> Co-authored-by: Paul Roman <[email protected]>
Summary by CodeRabbit
New Features
Refactor
Bug Fixes
Tests