Skip to content

Conversation

muhamadazmy
Copy link
Contributor

@muhamadazmy muhamadazmy commented Oct 3, 2025

Consistent schema across partitions

Summary:
This PR make sure that PPs have a consistent service schema by writing
and upsert-schema record to bifrost. The leader processor makes sure
to write this record to bifrost when schema changes are detected


Stack created with Sapling. Best reviewed with ReviewStack.

## Summary
- add a dedicated metadata slot and read/write helpers for storing service schemas in the partition-store FSM table
- extend the storage-api FSM table traits with schema accessors so callers can persist schema metadata
Summary:
This PR make sure that PPs have a consistent service schema by writing
and upsert-schema record to bifrost. The leader processor makes sure
to write this record to bifrost when schema changes are detected
@muhamadazmy muhamadazmy marked this pull request as ready for review October 3, 2025 10:46
self.record_keys().matches_key_query(query)
}
}

Copy link
Contributor Author

@muhamadazmy muhamadazmy Oct 3, 2025

Choose a reason for hiding this comment

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

This is currently not used (and will never be) a new draft for envelope redesign can be checked here

@slinkydeveloper
Copy link
Contributor

Can we wait to merge this?

@muhamadazmy
Copy link
Contributor Author

@slinkydeveloper of course. Not urgent. let's discuss how we going to maintain the schema type. moving forward

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