Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-12404

Farm-vet to identify the corrupted objects in mirror node and fix it automatically



    • Suggestion
    • Status: Gathering Interest (View Workflow)
    • Resolution: Unresolved
    • None
    • Smart Mirroring
    • None
    • 11
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.



      With the farm-vet feature implemented with Bitbucket DC 6.7 for mirrors, the Rest API to force sync repository changes from upstream/primary is no longer applicable. The farm-vet expected to self-heal by detecting corrupted objects and fix it by deleting and sync from upstream/primary. The far-vet is able to detect the corrupted object but unable to repair the corrupted object. Manual intervention is required by removing the project from the mirror sync list. Then restarting the mirror node and allow it to sync entire mirrored content from upstream/primary.

      Customer Use-case

      As a Bitbucket DC Sys. Admin, I would like to see, farm-vet to be able to force resync a repository/project without having to restart the entire mirror. Prior to 6.7 when we had an issue with a corrupt repository, we would remove the project and readd it or there was some API call. This is no longer possible 6.7+. And we have to restart the entire mirror which means downtime. Of course, having a mirror-farm setup is going to help minimize the downtime and is something we're looking to do soon.

      Additionally, you can see from the logs that the mirror tries to synchronize the repository but fails many times in a row. It would be good if it could 'self-heal' on its own - perhaps doing a full resync, but understand this might not be so easy.




            Unassigned Unassigned
            bannamalai Baskar Annamalai (Inactive)
            9 Vote for this issue
            12 Start watching this issue