Skip to content

[11/n] [meta] migrate rack IDs to typed UUIDs#10652

Open
sunshowers wants to merge 3 commits into
sunshowers/spr/main.11n-meta-migrate-rack-ids-to-typed-uuidsfrom
sunshowers/spr/11n-meta-migrate-rack-ids-to-typed-uuids
Open

[11/n] [meta] migrate rack IDs to typed UUIDs#10652
sunshowers wants to merge 3 commits into
sunshowers/spr/main.11n-meta-migrate-rack-ids-to-typed-uuidsfrom
sunshowers/spr/11n-meta-migrate-rack-ids-to-typed-uuids

Conversation

@sunshowers

Copy link
Copy Markdown
Contributor

Realized while working on this stack that we were still using untyped UUIDs for the rack UUID. Since we're going to be working on multirack soon, let's convert the UUID type over now.

Depends on:

Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
@just-be-dev

Copy link
Copy Markdown
Contributor

@jgallagher jgallagher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like bootstrap::server::tests::test_persistent_sled_agent_request_schema failed.

I believe this test is to catch any accidental breakage for the on-disk-serialized StartSledAgentRequests. In this case the schema change is wire-compatible, so I think it's fine to just EXPECTORATE=overwrite it?

let addr = sled.address();
Self {
rack_id,
rack_id: rack_id.into_untyped_uuid(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume we only support generic Uuid in oximeter timeseries - is there any reason to push support for typed UUIDs down to that? (I can't think of one, if the only benefit is to drop these conversions when constructing something for oximeter to consume)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants