Skip to content

[raft/scd] Implement operational intents repo methods - #1672

Open
MariemBaccari wants to merge 9 commits into
interuss:masterfrom
Orbitalize:raft_scd_operational_intents
Open

MariemBaccari wants to merge 9 commits into
interuss:masterfrom
Orbitalize:raft_scd_operational_intents

Conversation

@MariemBaccari

@MariemBaccari MariemBaccari commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Implements the scd opintents repo methods for the raftstore. The raftstore repo methods issue individual proposals.

Implements #1700

@mickmis mickmis 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.

LGTM

Comment thread pkg/scd/store/raftstore/store.go Outdated
Comment on lines +25 to +28
buf, err := json.Marshal(id)
if err != nil {
return nil, stacktrace.Propagate(err, "failed to marshal payload")
}

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.

Not for this PR, but with the look of it, looks like we could be pushing the marshalling of the value into HandleClientRequest and change the type of value to any. Except if some operations have more complex things going on?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

With the gate 1 work (#1709), I will look into payload size optimizations and that should include investigating custom encoding per payload type. I kept the marshalling outside so that consensus can receive an opaque payload like it would with custom encoding.
I referenced your suggestion in the contributions spreadsheet to keep it in mind in case we don't end up going with custom encoding for some reason. Is it okay if I revisit later ?

@MariemBaccari
MariemBaccari force-pushed the raft_scd_operational_intents branch from 88181ac to 579e236 Compare September 23, 2026 00:18

This branch has not been deployed

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants