[go: up one dir, main page]

raft: Routing table support for relative path based queries

When a client sends a request to Gitaly, most of the time, if not always, the repository is identified by its relative path.

We should not expect the client to know the partition key of a repository, because this is an internal implementation detail that should not leak into Gitaly's API.

However, the Raft routing table can only be queried by partition key. This poses a problem when a request from a client (GitLab) must be routed to the appropriate node. There is no way to retrieve the RoutingTableEntry from the relative path.

This MR introduces that functionality.

References:

Merge request reports

Loading