Skip to content

Conversation

@lolski
Copy link
Member

@lolski lolski commented Oct 24, 2025

Release notes: usage and product changes

Add protobuf schema for Raft's 'state mutation request'. The schema defines how the data is transported over the network and stored in the Raft log.

Implementation

  • Add a protobuf definition for State Mutation Request
  • Create a mock RPC endpoint to handle that message as a hack to get the code generator to work

// TODO: If the protocol is exposed, maybe it's actually `TypeDBRaft`?
service Raft {
rpc replication (Replication.Req) returns (Replication.Res);
rpc request (Request) returns (Request);
Copy link
Member Author

Choose a reason for hiding this comment

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

Without registering the endpoint, the Request message doesn't trigger code-generation. Find out why.

deps = [],
)

proto_library(
Copy link
Member

Choose a reason for hiding this comment

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

Let's add these libs in all languages. Moreover, I remember that there is another place where you need to list all the proto files, please search for replication-proto and replication.proto usages. I might be wrong.
But this might be the reason why it does not build these files without introducing them into the service.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in 00c2246

Copy link
Member Author

Choose a reason for hiding this comment

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

Stop checking Github on your holiday bro

@lolski lolski requested a review from farost October 24, 2025 11:45
Copy link
Member

@farost farost left a comment

Choose a reason for hiding this comment

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

Let's make sure we propagate the new file/target everywhere. Looks good overall

@lolski lolski merged commit ee7a259 into cluster-support-feature-branch Oct 24, 2025
2 checks passed
@lolski lolski deleted the state-mutation-request branch October 24, 2025 13:26
@lolski
Copy link
Member Author

lolski commented Oct 24, 2025

Merged after fixing the reported issue. Please have a look at this PR in more detail once you're back from the holiday, @farost !

farost pushed a commit that referenced this pull request Nov 19, 2025
Add protobuf schema for Raft's 'state mutation request'. The schema
defines how the data is transported over the network and stored in the
Raft log.

- Add a protobuf definition for State Mutation Request
- Create a mock RPC endpoint to handle that message as a hack to get the
code generator to work
farost pushed a commit to farost/typedb-protocol that referenced this pull request Nov 19, 2025
Add protobuf schema for Raft's 'state mutation request'. The schema
defines how the data is transported over the network and stored in the
Raft log.

- Add a protobuf definition for State Mutation Request
- Create a mock RPC endpoint to handle that message as a hack to get the
code generator to work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants