Skip to content

[cleanup][db] Not all datasets have associated "services" managing them #2000

Closed

Description

@smklein

Context: #1954 (comment)

The dataset structure in the database describes some information which assumes each dataset will be managed by an accompanying TCP/IP-based HTTP server:

pub struct Dataset {
#[diesel(embed)]
identity: DatasetIdentity,
time_deleted: Option<DateTime<Utc>>,
rcgen: Generation,
pub pool_id: Uuid,
ip: ipnetwork::IpNetwork,
port: SqlU16,
kind: DatasetKind,
pub size_used: Option<i64>,
}
(see: ip, port).

This isn't universally true; some datasets could exist and be managed by the sled agent (for example, when setting up a local dataset for logging or other debug info).

Activity

  1. added
    database
    cleanup
    on Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cleanupdatabase

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions