From e8bf283be168a4c1c25ce80a0643b28178d631fe Mon Sep 17 00:00:00 2001 From: Mikayla Thompson Date: Fri, 24 Jan 2025 11:46:08 -0700 Subject: [PATCH] Update the schema section Signed-off-by: Mikayla Thompson --- RFS/docs/DESIGN.md | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/RFS/docs/DESIGN.md b/RFS/docs/DESIGN.md index 4bac9288f..73a525a9a 100644 --- a/RFS/docs/DESIGN.md +++ b/RFS/docs/DESIGN.md @@ -221,27 +221,22 @@ At a high level, the primary concerns for a Reindex-from-Snapshot operation are Below is the schema for the coordinating metadata records to be stored in the CMS: ``` -INDEX WORK ENTRY RECORD -ID: +SHARD SETUP +ID: shard_setup FIELDS: - * name (string): The index name - * status (string): NOT_STARTED, COMPLETED, FAILED - * nextAcquisitionLeaseExponent (integer): Times the task has been attempted - * numShards (integer): Number of shards in the index - -DOCUMENTS MIGRATION STATUS RECORD -ID: docs_status -FIELDS: - * status (string): SETUP, IN_PROGRESS, COMPLETED, FAILED - * leaseExpiry (timestamp): When the current work lease expires + * creatorId (string): Unique id of the worker who created the task + * leaseHolderId (string): Unique id of the worker who has aquired the lease for the task + * expiration (timestamp): When the current lease expires * nextAcquisitionLeaseExponent (integer): Times the task has been attempted + * completedAt (timestamp): If present, when the task was completed. SHARD COMPONENT WORK ENTRY RECORD -ID: __ +ID: ____ FIELDS: - * leaseExpiry (timestamp): When the current work lease expires + * creatorId (string): Unique id of the worker who created the task * leaseHolderId (string): Unique ID of the RFS worker that currently holds the lease + * expiration (timestamp): When the current work lease expires * nextAcquisitionLeaseExponent (integer): Times the task has been attempted * successorWorkItems (list of strings): Follow-up work item(s) created from this parent item * completedAt (timestamp): When this work item was completed -``` \ No newline at end of file +```