Skip to content

[BYO-S3] Decouple the Lakekeeper warehouse name from the user-facing name #7753

Closed

Description

@mengw15

Task Summary

Part of #6870, follow-up to #6932. WarehouseResource derives the Lakekeeper warehouse name from the user-facing name: user-<uid>-<name>. That one string is simultaneously the Lakekeeper warehouse identifier, the REST catalog URL prefix, the S3 key prefix, and a component of every result URI stored by executions that wrote into the warehouse — which freezes the user-facing name at creation time. Renaming would have to rename the Lakekeeper warehouse and rewrite every stored URI, so today a warehouse can never be renamed. Computing units rename freely precisely because their name is pure display metadata: cuid is the identity everywhere else.

Decouple the two, the way display names and stable identifiers are separated in catalog systems generally:

  • Generate the catalog name from the row's own id: pre-allocate whid from the table's sequence (nextval(pg_get_serial_sequence('texera_db.user_warehouse','whid'))) before touching Lakekeeper, and name the warehouse user-<uid>-<whid>. The creation flow is otherwise unchanged — Lakekeeper first, then the DB row inserted with the pre-allocated id, with the existing compensating delete. Sequence pre-allocation is concurrency-safe and needs no schema change, and there is no collision case left: a failed attempt merely wastes a number (sequences never promise continuity), and a retry naturally uses a fresh one — so even an uncompensated Lakekeeper orphan from a crashed attempt cannot wedge a retry the way a name-derived orphan can today.
  • name stays the per-user-unique display name in user_warehouse, now free to change: a rename endpoint mirroring computing-unit rename becomes a straightforward follow-up (not part of this task).
  • Rename the column while the table is empty: user_warehouse.warehouse_name → lakekeeper_warehouse_name, matching its sibling lakekeeper_warehouse_id. The table has its own name column, so "warehouse_name" is ambiguous today — and once the value is a generated opaque string it is even less of a "name". The wire DTO keeps warehouseName. Zero migration, same reason as the rest of this task: with the flag off everywhere the table is empty in every deployment.

Nothing downstream cares: stored URIs embed the catalog name opaquely, and after #6933 the frontend no longer displays it anywhere — it shows name. The S3 layout becomes user-<uid>-<whid>/ instead of user-<uid>-<name>/.

Worth doing while the flag is off everywhere: no deployment holds warehouses yet, so the naming scheme can change with zero migration. Once real data exists under name-derived prefixes, this becomes a migration project.

Task Type

  • Other (feature implementation)

Activity

  1. added theissue type on Aug 18, 2026
  2. self-assigned this
    on Aug 18, 2026
  3. added a commit that references this issue on Aug 20, 2026
    d663833
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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions