oxidecomputer / oxidecomputer/omicron

Dataset upper bound should be non-optional, enforced

Open
#1,630 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

nexus Sled Agent storage
Dominant language
Rust
Stars
572
Forks
97
Avg merge
2d 12h
Merged PRs (30d)
96

Description

Datasets within Omicron have a field dedicated to their "Maximum provisioned size":

https://github.com/oxidecomputer/omicron/blob/48285cef35e61bb3216995ce17b91f136edc4e00/common/src/sql/dbinit.sql#L172-L174

This field is:

It currently exists as an approximation of crucible dataset size for allocation purposes, but it limited from the perspective of enforcing disk space availability.

We should be implementing / enforcing this for all dataset types. https://github.com/oxidecomputer/omicron/pull/1231 starts attempting to enforce out-of-space errors, but is incomplete without this cooperation across dataset types.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with common/src/sql/dbinit.sql at the dataset maximum-size field, then read the incomplete out-of-space work in pull request 1231 and the referenced ZFS quota and reservation behavior. Done means the upper bound is non-optional and enforced consistently for all dataset types, including appropriate out-of-space behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, sql
Domain
databases, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.