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

Make sure that all shard level requests hold the original indices #7319

Closed

Commits on Aug 18, 2014

  1. Internal: make sure that all shard level requests hold the original i…

    …ndices
    
    A request that relates to indices (`IndicesRequest` or `CompositeIndicesRequest`) might be converted to some other internal request(s) (e.g. shard level request) that get distributed over the cluster. Those requests contain the concrete index they refer to, but it is not known which indices (or aliases or expressions) the original request related to.
    
    This commit makes sure that the original indices are available as part of the shard level requests and makes them implement `IndicesRequest` as well.
    
    Also every internal request should be created passing in the original request, so that the original headers, together with the eventual original indices and options, get copied to it. Corrected some places where this information was lost.
    
    NOTE: As for the bulk api and other multi items api (e.g. multi_get), their shard level requests won't keep around the whole set of original indices, but only the ones that related to the bulk items sent to each shard, the important bit is that we keep the original names though, not only the concrete ones.
    javanna committed Aug 18, 2014
    Copy the full SHA
    601b806 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2014

  1. Made OriginalIndices empty constructor private and added EMPTY consta…

    …nt instead
    
    This allowed also to remove the missing member in OriginalIndices, since empty original indices are always represented by the new constant.
    javanna committed Aug 20, 2014
    Copy the full SHA
    f064e77 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    5c71a63 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    3d92692 View commit details
    Browse the repository at this point in the history