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

Fail demoted primary shards and retry request #16415

Closed
wants to merge 11 commits into from
Closed

Fail demoted primary shards and retry request #16415

wants to merge 11 commits into from

Commits on Feb 3, 2016

  1. Fail demoted primary shards and retry request

    This commit handles the scenario where a replication action fails on a
    replica shard, the primary shard attempts to fail the replica shard
    but the primary shard is notified of demotion by the master. In this
    scenario, the demoted primary shard must be failed, and then the
    request rerouted again to the new primary shard.
    jasontedor committed Feb 3, 2016
    Configuration menu
    Copy the full SHA
    e751dbb View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2016

  1. Duplicate log entry in TransportReplicationAction

    This commit removes a logging statement from TransportReplicationAction
    that occurs when handling a catastrophic non-channel failure while
    failing a shard. The same information is also logged from
    ShardStateAction when the master responds to the shard failure request
    there.
    jasontedor committed Feb 9, 2016
    Configuration menu
    Copy the full SHA
    0aff805 View commit details
    Browse the repository at this point in the history
  2. Simplify retry after demoted primary

    This commit significantly simplifies the retry logic upon a demoted
    primary shard. In particular, rather failing the demoted primary via
    shard state action and starting a new reroute phase, this commit
    simplifies this logic by failing the demoted primary via an index shard
    reference, and sending a retry on primary exception back to the original
    reroute phase.
    jasontedor committed Feb 9, 2016
    Configuration menu
    Copy the full SHA
    b6fa2d6 View commit details
    Browse the repository at this point in the history
  3. Dedicated test upon demoted primary

    This commit adds a dedicated test for handling the situation of a
    demoted primary shard that was trying to fail a replica shard during a
    replication action.
    jasontedor committed Feb 9, 2016
    Configuration menu
    Copy the full SHA
    2b3f87f View commit details
    Browse the repository at this point in the history
  4. Remove dead parameter in ReplicationPhase

    This commit removes a dead request parameter from the constructor of
    TransportReplicationAction.ReplicationPhase.
    jasontedor committed Feb 9, 2016
    Configuration menu
    Copy the full SHA
    2746be7 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'master' into waiting-is-the-hardest-part

    * master: (85 commits)
      Rename variables.
      BootstrapSettings final with private constructor
      simplify method signature
      Register bootstrap settings
      Fix asciidoc typo
      Log warning if max file descriptors too low
      Require that relocation source is marked as relocating before starting recovery to relocation target
      apply feedback from @colings86
      Speedup MessageDigestTests#testToHexString
      Fix serialization of `search_analyzer`.
      Cleanup JavaVersion
      Detach QueryShardContext from IndexShard and remove obsolete threadlocals
      Move sorting tests w/o scripting back to core
      Fix recovery translog stats totals when recovering from store
      [TEST] Don't assert on null value. It's fine to not always see an exception in this part of the test.
      Objects#requireNonNull guard in MessageDigests
      Fix trace logging statement in ZenDiscovery
      Avoid cloning MessageDigest instances
      Minor clean up.
      Make IndicesWarmer a private class of IndexService
      ...
    jasontedor committed Feb 9, 2016
    Configuration menu
    Copy the full SHA
    c79a368 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6cd730b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2645039 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2016

  1. Configuration menu
    Copy the full SHA
    29643b7 View commit details
    Browse the repository at this point in the history
  2. Constant is not random

    jasontedor committed Feb 10, 2016
    Configuration menu
    Copy the full SHA
    2912da0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ef2ec7c View commit details
    Browse the repository at this point in the history