Skip to content
Snippets Groups Projects
This project is mirrored from https://gitlab.com/gitlab-org/gitaly.git. Pull mirroring updated .
  1. May 18, 2021
    • Patrick Steinhardt's avatar
      remote: Vote when adding and removing remotes · fa2a10c2
      Patrick Steinhardt authored
      The `AddRemote()` and `RemoveRemote()` RPCs are currently the only ones
      which don't cast transactional votes in production. As a result, all
      secondaries are always considered as outdated whenever we for example
      update object pools or mirrors. Given that these RPCs are typically
      executed before these long running actions, the net result is that
      secondaries will be out of date most of the time.
      
      Fix the issue by adding transactional voting for `AddRemote()` and
      `RemoveRemote()`. In both cases, voting is done on the remote
      configuration only, and not on the complete configuration. This may be
      inaccurate as the remote may be influenced by other configuration like
      for example the `http.<url>.` config entries. But given that we do not
      synchronize configuration on replication, it may be risky to instead
      vote on the complete configuration as it may have diverged across nodes
      and would never recover even after a replication job got processed.
      
      Given that these RPCs are about to be phased out soonish anyway, we just
      ignore this issue for now. At least for a subset of fetches, this change
      will likely not yet enable transactional behaviour. Instead, we may see
      a shift to missing votes in `SetConfig()`, which is used to set up
      credentials. We can fix this issue in a follow-up though, especially so
      because at that time we'll also need to have replication of the config
      to recover from failed votes.
      
      Changelog: added
      fa2a10c2
    • Patrick Steinhardt's avatar
      featureflag: Add feature flag for transactional remote handling · edb6951b
      Patrick Steinhardt authored
      Neither the `AddRemote()` nor the `RemoveRemote()` RPCs currently handle
      transactional voting. This is about to change in subsequent commits. But
      given that it's got some risk involved we want to do it behind a feature
      flag, which we introduce now.
      edb6951b
    • Patrick Steinhardt's avatar
      remote: Allow passing testserver options · bcb1d92e
      Patrick Steinhardt authored
      The remote service setup functions do not accept testserver options,
      which makes it impossible to override a subset of dependencies. Refactor
      them to accept options.
      bcb1d92e
    • Patrick Steinhardt's avatar
      remote: Inject transaction manager · 1baf8535
      Patrick Steinhardt authored
      We're about to start using the transaction manager in the remote
      service. Inject it as a preparatory step.
      1baf8535
    • Toon Claes's avatar
      Merge branch 'ps-fix-lint-macos' into 'master' · 1c679775
      Toon Claes authored
      Fix lint task on MacOS
      
      See merge request gitlab-org/gitaly!3488
      1c679775
    • Patrick Steinhardt's avatar
      Merge branch 'fix-config-toml-example' into 'master' · 8c5ee11f
      Patrick Steinhardt authored
      config: update a bin_dir of config.toml.example
      
      See merge request gitlab-org/gitaly!3503
      8c5ee11f
    • Kamil Trzciński's avatar
      config: update a bin_dir of config.toml.example · e261a892
      Kamil Trzciński authored
      A default usage of `make` does compile binaries
      in `_build/bin`. To make a `config.toml.example`
      be easy to use in a default setting this aligns
      `bin_dir` with this change.
      
      If a `make install` is done, a default `DESTDIR=/usr/local/bin`
      a `bin_dir` needs to be aligned as well.
      e261a892
    • Zeger-Jan van de Weg's avatar
      Merge branch 'ps-mv-git-user' into 'master' · a5e7fb80
      Zeger-Jan van de Weg authored
      TestUser moved into the gittest package
      
      See merge request gitlab-org/gitaly!3498
      a5e7fb80
    • Sami Hiltunen's avatar
      Merge branch 'xx/fix-improperly-designed-testcase-for-command' into 'master' · d0c39531
      Sami Hiltunen authored
      Fix improperly designed test case for command
      
      See merge request gitlab-org/gitaly!3422
      d0c39531
    • James Fargher's avatar
      Merge branch 'sh-fix-seg-fault-gitaly' into 'master' · a64555f9
      James Fargher authored
      Fix Gitaly seg fault when creating new projects
      
      Closes #3621
      
      See merge request gitlab-org/gitaly!3501
      a64555f9
  2. May 17, 2021