Skip to content

[BYO-S3] Per-user warehouse creation always fails: the default warehouse owns the bucket root #7739

Closed

Description

@mengw15

What happened?

With storage.warehouse.enabled = true, creating any per-user warehouse fails. Lakekeeper rejects it:

Lakekeeper create warehouse 'user-1-test' failed (HTTP 400):
{"error":{"message":"Storage profile overlaps with existing warehouse texera",
 "type":"CreateWarehouseStorageProfileOverlap","code":400}}

No per-user warehouse can be created on a standard deployment, so the Phase 0 exit criterion in #6870 — "a deployment can turn the flag on at the end of Phase 0" — does not hold.

Root cause. The deployment scripts create the default warehouse without a key-prefix, so it claims the entire bucket:

  • bin/single-node/docker-compose.yml — the create payload has no key-prefix field at all
  • bin/k8s/values.yaml — keyPrefix: "", documented as "Empty = bucket root"; the init job omits the field when it is empty

WarehouseResource.create (#6932) places each per-user warehouse in the same bucket under key-prefix = user-<uid>-<name>. Any such prefix is contained in the default warehouse's location, which Lakekeeper treats as an overlap and refuses.

Why tests did not catch it. LakekeeperClientSpec drives an in-process HTTP stub, which performs no overlap validation; the amber integration suite does not exercise the warehouse management API. The conflict lives between deployment configuration and a code assumption, so it is invisible in a diff and only reproduces end to end.

How to reproduce?

  1. Bring up a standard deployment (bin/single-node/docker-compose.yml) so the default warehouse is created.
  2. Set storage.warehouse.enabled = true and restart the services.
  3. Dashboard → Warehouses → Create Warehouse → any valid name.
  4. The request fails with CreateWarehouseStorageProfileOverlap.

Proposed fix

Give the default warehouse its own key-prefix (e.g. shared) in both deployment paths, so every warehouse — the platform's and the users' — is a sibling under its own prefix. WarehouseResource needs no change.

Upgrade impact. Lakekeeper refuses to change key_prefix on an existing warehouse (Field key_prefix cannot be updated to prevent loss of data), so an existing deployment must drop and recreate its default warehouse. The cost is bounded: ComputingUnitMaster.recurringCheckExpiredResults unconditionally purges results, runtime statistics and logs of completed executions past result-cleanup.ttl-in-seconds (default 86400), so only in-flight and same-day executions are affected. Texera addresses the warehouse by name, not id, so nothing else needs updating.

Verified end to end locally: after recreating the default warehouse with key-prefix: shared, per-user warehouses create successfully and an execution targeting one writes its results, runtime statistics and console messages entirely under that warehouse's prefix — the shared prefix stays empty.

Affected Area

Storage / Metadata

Part of #6870.

Activity

  1. github-actions commented on Aug 17, 2026

    @github-actions
    Contributor

    👋 Thanks for opening this issue, @mengw15!

    It looks like the issue description doesn't quite follow our template yet:

    • This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.

    Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.

    You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.

  2. self-assigned this
    on Aug 17, 2026
  3. added a commit that references this issue on Aug 19, 2026
    51f38e1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions