Skip to content

fix(tasks): return 404 when reading the config of a queue the server does not have - #2280

Merged
c-thiel merged 1 commit into
mainfrom
ct/task-queue-config-not-found
Nov 13, 2026
Merged

c-thiel merged 1 commit into
mainfrom
ct/task-queue-config-not-found

Conversation

@c-thiel

@c-thiel c-thiel commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Reading a task queue's config (GET .../task-queue/{queue_name}/config, warehouse and project route) now returns 404 QueueNotFound when this server has no queue of that name. It returned 200 with an empty config, while setting the config returned 400 QueueNotFound. Clients can now tell whether a server offers a queue, for example one that an extension registers only when a setting is on.

A queue name from before a rename still works, and a registered queue without a stored config still returns 200 with an empty config.

Release notes

  • Reading the config of a task queue that this server does not have returns 404 QueueNotFound, not an empty config.

Downstream follow-up

  • Regenerate the extension's management OpenAPI spec after the pin bump: every GET config path gains a 404 entry.

Summary by CodeRabbit

  • Bug Fixes
    • Task-queue configuration requests now return a consistent 404 response for unregistered queues across project and warehouse routes.
    • Requests using the former tabular_expiration queue name resolve to the canonical soft_deletion queue.
  • Documentation
    • Updated API documentation to describe 404 responses for unknown queues and, where applicable, nonexistent warehouses.

…does not have

GET task-queue/{queue_name}/config (warehouse and project route) now returns 404 QueueNotFound for a queue this server has not registered. It returned 200 with an empty config, while setting the config returned 400. A pre-rename queue name still resolves, and a registered queue without a stored config still returns an empty config.
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The project and warehouse task-queue configuration routes now validate queue names before authorization and configuration lookup. Registered aliases resolve to canonical names. OpenAPI responses document relevant 404 errors, and integration tests cover unknown and renamed queues.

Changes

Task Queue Configuration

Layer / File(s) Summary
Queue registration and configuration lookup
crates/lakekeeper/src/api/management/v1/task_queue.rs
A shared helper resolves aliases to registered queue names and formats unknown-queue errors. Configuration lookup now uses the supplied current queue name.
Route checks and response coverage
crates/lakekeeper/src/api/management/v1/project.rs, crates/lakekeeper/src/api/management/v1/warehouse/mod.rs, crates/lakekeeper/src/api/management/mod.rs, docs/docs/api/management-open-api.yaml, crates/lakekeeper-integration-tests/tests/management_tasks_schedule_lifecycle.rs
Project and warehouse routes check queue registration before authorization and configuration lookup. OpenAPI responses document 404 errors. Integration tests cover unknown queues and the former tabular_expiration name.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Bug fix

Suggested reviewers: midor, brgr-s

Merge Risk: Minimal · up to 0f8e0

The config GET routes now return 404 QueueNotFound for queues the server has not registered. Registered queues without a stored config still return 200 with an empty config, and pre-rename queue names still resolve. No merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title says the server now returns 404 when a client reads the config of a queue the server has not registered. The changeset matches this. The get_task_queue_config warehouse and project routes …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title says the server now returns 404 when a client reads the config of a queue the server has not registered. The changeset matches this. The get_task_queue_config warehouse and project routes now call require_registered_queue before authorization and config lookup. The OpenAPI spec adds 404 responses, and new tests cover unknown queues and the pre-rename alias tabular_expiration. The title names the main behavior change and is specific enough for a scanning teammate.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

A rabbit checks the queue at dawn,
And finds the old name still lives on.
Unknown names receive a four-oh-four,
The docs now tell what errors are for.
Soft deletion hops along once more.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e09a68b3-07a2-4e94-b685-8922d2c13032
Commits

Reviewing files that changed from the base of the PR and between c18bc33 and 0f8e0ac.

Files selected for processing: 6

  • crates/lakekeeper-integration-tests/tests/management_tasks_schedule_lifecycle.rs
  • crates/lakekeeper/src/api/management/mod.rs
  • crates/lakekeeper/src/api/management/v1/project.rs
  • crates/lakekeeper/src/api/management/v1/task_queue.rs
  • crates/lakekeeper/src/api/management/v1/warehouse/mod.rs
  • docs/docs/api/management-open-api.yaml

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.

@github-actions

Copy link
Copy Markdown
Contributor

✅ PR Title Formatted Correctly

The title of this PR match the correct format. Thank you!

@c-thiel
c-thiel merged commit 050734e into main Nov 13, 2026
73 checks passed
@c-thiel
c-thiel deleted the ct/task-queue-config-not-found branch November 13, 2026 07:00
c-thiel added a commit that referenced this pull request Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant