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

Add details about what acquired the shard lock last #38807

Merged
merged 3 commits into from
Feb 28, 2019

Commits on Feb 12, 2019

  1. Add details about what acquired the shard lock last

    This adds a `details` parameter to shard locking in `NodeEnvironment`. This is
    intended to be used for diagnosing issues such as
    
    ```
      1> [2019-02-11T14:34:19,262][INFO ][o.e.c.m.MetaDataDeleteIndexService] [node_s0] [.tasks/oSYOG0-9SHOx_pfAoiSExQ] deleting index
      1> [2019-02-11T14:34:19,279][WARN ][o.e.i.IndicesService     ] [node_s0] [.tasks/oSYOG0-9SHOx_pfAoiSExQ] failed to delete index
      1> org.elasticsearch.env.ShardLockObtainFailedException: [.tasks][0]: obtaining shard lock timed out after 0ms
      1> 	at org.elasticsearch.env.NodeEnvironment$InternalShardLock.acquire(NodeEnvironment.java:736) ~[main/:?]
      1> 	at org.elasticsearch.env.NodeEnvironment.shardLock(NodeEnvironment.java:655) ~[main/:?]
      1> 	at org.elasticsearch.env.NodeEnvironment.lockAllForIndex(NodeEnvironment.java:601) ~[main/:?]
      1> 	at org.elasticsearch.env.NodeEnvironment.deleteIndexDirectorySafe(NodeEnvironment.java:554) ~[main/:?]
    ```
    
    In the hope that we will be able to determine why the shard is still locked.
    
    Relates to elastic#30290 as well as some other CI failures
    dakrone committed Feb 12, 2019
    Configuration menu
    Copy the full SHA
    2a391f3 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2019

  1. Configuration menu
    Copy the full SHA
    7bc76ad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0efd394 View commit details
    Browse the repository at this point in the history