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

Recover peers from translog, ignoring soft deletes #38904

Merged

Commits on Feb 14, 2019

  1. Recover peers from translog, ignoring soft deletes

    Today if soft deletes are enabled then we read the operations needed for peer
    recovery from Lucene. However we do not currently make any attempt to retain
    history in Lucene specifically for peer recoveries so we may discard it and
    fall back to a more expensive file-based recovery. Yet we still retain
    sufficient history in the translog to perform an operations-based peer
    recovery.
    
    In the long run we would like to fix this by retaining more history in Lucene,
    possibly using shard history retention leases (elastic#37165). For now, however, this
    commit reverts to performing peer recoveries using the history retained in the
    translog regardless of whether soft deletes are enabled or not.
    DaveCTurner committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    c8d2bf9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7b6c2a0 View commit details
    Browse the repository at this point in the history
  3. IOUtils.close

    DaveCTurner committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    53d63f6 View commit details
    Browse the repository at this point in the history
  4. Neater to be Releasable

    DaveCTurner committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    755ce5a View commit details
    Browse the repository at this point in the history