Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Chandler <wchandler@gitlab.com>2023-11-06 22:03:55 +0300
committerWill Chandler <wchandler@gitlab.com>2023-11-06 22:03:55 +0300
commit932e3c214ba1a832544cb35e139c2950581c3486 (patch)
tree6dd637b984b2bd72f94413c817e276fbb2dbc067
parentfe49f71be958ec87dac5e6885453d8aa05797c81 (diff)
WIP: Try out WaitForParentwc/wait-tableflip-parent
Try to have the child Gitaly process wait for the parent Gitaly to exit before taking traffic.
-rw-r--r--internal/cli/gitaly/serve.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/cli/gitaly/serve.go b/internal/cli/gitaly/serve.go
index edca64585..62a3092c1 100644
--- a/internal/cli/gitaly/serve.go
+++ b/internal/cli/gitaly/serve.go
@@ -499,6 +499,10 @@ func run(cfg config.Cfg, logger log.Logger) error {
}
}
+ if err := b.WaitForParent(ctx); err != nil {
+ return fmt.Errorf("failed to wait for parent Gitaly process to exit: %w", err)
+ }
+
if err := b.Start(); err != nil {
return fmt.Errorf("unable to start the bootstrap: %w", err)
}