Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,763
    • Issues 44,763
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,331
    • Merge requests 1,331
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #334550
Closed
Open
Issue created Jun 24, 2021 by Douglas Barbosa Alexandre@dbalexandreMaintainer

Geo - Upgrading to GitLab 13.12 cause secondary nodes to redownload each LFS file

Summary

The problem is that the new state column in the lfs_objects_registry table introduced in 34aab0b7 is set to 0 by default which means pending that causes Geo to redownload each LFS file.

Possible workaround

The current workaround is to jump into a Rails console on each secondary node and update the state column properly with any of the following snippets:

  • Migrate legacy sync state to the new state column (should take under a minute):
Geo::LfsObjectRegistry.where(state: 0, success: true).update_all(state: 2)
Edited Jun 30, 2021 by Michael Kozono
Assignee
Assign to
Time tracking