mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
* lance: a register of a new name needs a Lance dataset at its location A Lance register of a new name takes any free location in the table's namespace (#12473 refuses one another record holds), so it can claim an empty location, or a dropped table's emptied root, in the catalog's stead. A register of a name without a record now authorizes the create with its location (AuthorizeCreateTable: the permission, the namespace check and the refusal of a claimed location run before anything is read, so a location in another namespace is answered alike whether it holds a dataset or not), then refuses with 400 a location holding no Lance dataset (no _versions/). A name that has a record, readable by the caller or not (deregistered, or without GetTable), keeps the existing path: CreateTable answers for it and bringing it back needs UpdateTable (#12552). Test: TestRegisterNeedsALanceDataset: an empty location 400; a caller who may not create 403; a dropped table's root 400; another namespace's path answers the same with and without a dataset; a written dataset registers (positive control). Red with the dataset check removed, the authorization skipped, or the location left out of the authorization; TestDeregisterAndReregisterNeedUpdateTable is red when the dataset check also runs for a name that has a record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * lance: a register of a name with a record keeps the CreateTable path Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * lance: a register needs _versions to be a directory Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Javier de la Torre <jatorre@carto.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>