Skip to content

gitaly: Atomic repository creation

Patrick Steinhardt requested to merge pks-gitaly-atomic-repo-creation into master

What does this MR do and why?

This MR goes the last mile towards supporting atomic repository creation in Gitaly and then updates the GITALY_SERVER_VERSION to point to the merge commit in Gitaly which introduces it. This MR replaces !75228 (closed), which has failed at first due to a spec regression caused by the semantic change.

Atomic repository creation is currently behind a feature flag, so the updated server version is not yet going to enable it for any deployments, but really only for our specs. With the feature flag enabled, Gitaly Cluster setups can properly vote on newly created repositories and thus ensure consistency across all Gitaly nodes. To implement this, Gitaly had to change semantics of CreateRepository and related calls to start to fail in case the target repository exists already.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading