Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug the engine might choose a replica with a smaller head size to be the source of truth for auto-salvage #1114

Merged
merged 2 commits into from
May 31, 2024

Commits on May 30, 2024

  1. Fix bug the engine might choose a replica with a smaller head size to be

    the source of truth for auto-salvage
    
    longhorn-8659
    
    Signed-off-by: Phan Le <phan.le@suse.com>
    PhanLe1010 committed May 30, 2024
    Configuration menu
    Copy the full SHA
    af60e85 View commit details
    Browse the repository at this point in the history
  2. Modify the salvageRevisionCounterDisabledReplicas logic

    The old logic is that:
    1. Filter replica candidates to keep only replicas which was modified
       within the last 5 seconds from the last modified replica
    2. Then filter to keep only replicas with head size equals to the biggest
       one
    3. Then pick a random replica from the set
    
    The new logic:
    1. Filter replica candiates to keep only replicas which was modified
       within the last 5 seconds from the last modified replica
    2. Then filter to keep only replicas with head size equal to the biggest
       one
    3. Then pick the last modified replica from the set
    
    longhorn-8659
    longhorn-8563
    
    Signed-off-by: Phan Le <phan.le@suse.com>
    PhanLe1010 committed May 30, 2024
    Configuration menu
    Copy the full SHA
    da4be69 View commit details
    Browse the repository at this point in the history