Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab
GitLab
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 34,928
    • Issues 34,928
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 1,241
    • Merge Requests 1,241
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GitLab.org
  • GitLabGitLab
  • Merge Requests
  • !869

Merged
Opened Nov 14, 2016 by Gabriel Mazetto@brodock🔶Maintainer

Geo: Fix cache clearing after repository update on secondary node

  • Overview 10
  • Commits 7
  • Pipelines 11
  • Changes 8

When replicating operations originated from git, we don't have the same entry point (git_push_service.rb) on the secondary node, and because of that we had to manually duplicate some code after the update happens on the secondary (Pull vs Push).

This MR will introduces the following changes for Geo (#76 (closed)):

  • cache backfilling by ProjectCacheWorker
    • The call will switch from normal to Geo specific cache building code (when in a secondary node).
  • triggers after_* repository hooks when necessary to clear cache after specific events (when in a secondary node).

Fixes #1129 (closed)

cc @marin @dewetblomerus @patricio

Assignee
Assign to
Reviewer
Request review from
8.13
Milestone
8.13 (Past due)
Assign milestone
Time tracking
Reference: gitlab-org/gitlab!869
Source branch: 1129-geo-clear-cache

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.