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

Check and repair index under the store metadata lock #27768

Merged
merged 9 commits into from
Dec 20, 2017

Commits on Dec 12, 2017

  1. Check index under the store metadata lock

    Today when we get a metadata snapshot directly from a store directory,
    we acquire a metadata lock, then acquire an IW lock. However, we create
    a CheckIndex in IndexShard without acquiring the metadata lock first.
    This causes a recovery failed because the IW lock can be still held by
    `snapshotStoreMetadata`. This commit makes sure to create a CheckIndex
    under the metadata lock.
    
    Closes elastic#24481
    Relates elastic#24787
    dnhatn committed Dec 12, 2017
    Configuration menu
    Copy the full SHA
    b9f58e3 View commit details
    Browse the repository at this point in the history
  2. loan the metadata lock

    dnhatn committed Dec 12, 2017
    Configuration menu
    Copy the full SHA
    9c6c298 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2017

  1. Configuration menu
    Copy the full SHA
    06a1047 View commit details
    Browse the repository at this point in the history
  2. do not sysout

    dnhatn committed Dec 14, 2017
    Configuration menu
    Copy the full SHA
    34ae013 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cf6802f View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2017

  1. Configuration menu
    Copy the full SHA
    1a8bdd5 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2017

  1. lock directory when checkIndex

    dnhatn committed Dec 18, 2017
    Configuration menu
    Copy the full SHA
    f231042 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2017

  1. Configuration menu
    Copy the full SHA
    e6d26df View commit details
    Browse the repository at this point in the history
  2. Do not use CheckIndex directly

    dnhatn committed Dec 20, 2017
    Configuration menu
    Copy the full SHA
    90afdeb View commit details
    Browse the repository at this point in the history