Skip to content

Conversation

smklein
Copy link
Collaborator

@smklein smklein commented Aug 27, 2025

Split off of #8845

Adds and tests handoff-related queries which will be used in integration (reading on boot): #8925

Does not actually flip Nexus to use these records yet.

Depends on #8931

Next part of #8501: Adding queries for these records

@smklein smklein changed the title (3/N) db_metadata_nexus database queries (handoff) (3/N) db_metadata_nexus queries (handoff) Aug 27, 2025
@smklein smklein force-pushed the db_metadata_nexus_handoff branch from c3be777 to c289efd Compare August 28, 2025 22:53
@smklein smklein force-pushed the db_metadata_nexus_queries branch from 20fafc3 to b884dfa Compare August 28, 2025 23:03
@smklein smklein force-pushed the db_metadata_nexus_handoff branch from c289efd to 7d2b6e1 Compare August 28, 2025 23:03
@smklein smklein changed the title (3/N) db_metadata_nexus queries (handoff) (4/N) db_metadata_nexus queries (handoff) Aug 28, 2025
@smklein smklein marked this pull request as ready for review August 28, 2025 23:13
@smklein smklein force-pushed the db_metadata_nexus_queries branch from b884dfa to a91fb35 Compare August 29, 2025 01:25
@smklein smklein force-pushed the db_metadata_nexus_handoff branch 2 times, most recently from 6afc8af to 8d9782a Compare August 29, 2025 15:48
@smklein smklein force-pushed the db_metadata_nexus_queries branch from a91fb35 to 0a20282 Compare August 29, 2025 15:48
@smklein smklein force-pushed the db_metadata_nexus_handoff branch 2 times, most recently from 939eaf9 to ed8c3b7 Compare August 29, 2025 21:22
@smklein smklein force-pushed the db_metadata_nexus_queries branch from 8e93726 to 2dba0e1 Compare August 29, 2025 21:22
@smklein smklein force-pushed the db_metadata_nexus_handoff branch 4 times, most recently from c329ca8 to ebaa6a2 Compare September 2, 2025 16:25
Base automatically changed from db_metadata_nexus_queries to main September 2, 2025 18:13
@smklein smklein force-pushed the db_metadata_nexus_handoff branch from ebaa6a2 to 38a265b Compare September 2, 2025 18:46
// Implementation function for attempt_handoff that runs within a
// transaction
//
// This function must be executed from a transaction context to be safe.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess there's no way to be sure that we're in one at compile-time?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not trivially - I could try to make some sorta "token" here - but this also isn't a public function, so IMO the risk of mis-use is pretty low.

@smklein smklein merged commit 8cde6ef into main Sep 3, 2025
16 checks passed
@smklein smklein deleted the db_metadata_nexus_handoff branch September 3, 2025 18:56
smklein added a commit that referenced this pull request Sep 9, 2025
Split off of #8845

Reads records on boot, validates access.

Depends on queries from
#8932

Fixes #8501
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.

2 participants