From daa77c2a0495b1c8f24352b461734ee7df77651b Mon Sep 17 00:00:00 2001 From: Roshan Jobanputra Date: Fri, 1 Dec 2023 12:26:00 -0500 Subject: [PATCH] Implement a stream recv_many to avoid potential starvation issue; address other PR feedback --- .../content/sql/system-catalog/mz_internal.md | 6 +- misc/cargo-vet/audits.toml | 25 +++++++ misc/cargo-vet/imports.lock | 17 +++++ src/adapter/src/coord/privatelink_status.rs | 28 ++++---- .../src/cloud_resource_controller.rs | 67 +++++++++---------- src/ore/src/future.rs | 49 ++++++++++++++ src/storage-controller/src/lib.rs | 45 ++++++++++--- 7 files changed, 173 insertions(+), 64 deletions(-) diff --git a/doc/user/content/sql/system-catalog/mz_internal.md b/doc/user/content/sql/system-catalog/mz_internal.md index 1208cc1efd9b..06769905f2f0 100644 --- a/doc/user/content/sql/system-catalog/mz_internal.md +++ b/doc/user/content/sql/system-catalog/mz_internal.md @@ -735,14 +735,14 @@ messages and additional metadata helpful for debugging. ### `mz_aws_privatelink_connection_status_history` The `mz_aws_privatelink_connection_status_history` table contains a row describing -the historical status for each PrivateLink connection. +the historical status for each AWS PrivateLink connection in the system. | Field | Type | Meaning | |-------------------|----------------------------|------------------------------------------------------------| | `occurred_at` | `timestamp with time zone` | Wall-clock timestamp of the status change. | -| `connection_id` | `text` | The unique identifier of the AWS PrivateLink connection. Corresponds to [`mz_catalog.mz_connections.id`](../mz_catalog#mz_connections) | -| `status` | `text` | The status: one of `pending-service-discovery`, `creating-endpoint`, `recreating-endpoint`, `updating-endpoint`, `available`, `deleted`, `deleting`, `expired`, `failed`, `pending`, `pending-acceptance`, `rejected`, `unknown` | +| `connection_id` | `text` | The unique identifier of the AWS PrivateLink connection. Corresponds to [`mz_catalog.mz_connections.id`](../mz_catalog#mz_connections). | +| `status` | `text` | The status of the connection: one of `pending-service-discovery`, `creating-endpoint`, `recreating-endpoint`, `updating-endpoint`, `available`, `deleted`, `deleting`, `expired`, `failed`, `pending`, `pending-acceptance`, `rejected`, or `unknown`. |