Skip to content

Serialize and expose timeout of acknowledged requests in REST layer #26189

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

Merged
merged 5 commits into from
Aug 15, 2017

Conversation

ywelsch
Copy link
Contributor

@ywelsch ywelsch commented Aug 14, 2017

Due to the weird way of structuring the serialization code in AcknowledgedRequest, many request types forgot to properly serialize the request timeout, for example "index deletion", "index rollover", "index shrink", "putting pipeline", and other requests. This means that if those requests were not directly sent to the master node, the acknowledgement timeout information would be lost (and the default used instead).
Some requests also don't properly expose the timeout mechanism in the REST layer, such as put / delete stored script. This PR fixes all that.

5.6 backport is here: #26213

Due to the weird way of structuring the serialization code, many request types forgot to properly
serialize the request timeout, for example index deletion or index rollover / shrink request, putting
pipeline request, ...
@ywelsch ywelsch added :Distributed Indexing/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search. >bug v5.6.1 v6.0.0 v6.1.0 v7.0.0 labels Aug 14, 2017
@ywelsch ywelsch removed the v5.6.1 label Aug 15, 2017
Copy link
Contributor

@s1monw s1monw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

ywelsch added a commit that referenced this pull request Aug 15, 2017
…26213)

Due to the weird way of structuring the serialization code in AcknowledgedRequest, many request types forgot to properly serialize the request timeout, for example "index deletion", "index rollover", "index shrink", "putting pipeline", and other requests. This means that if those requests were not directly sent to the master node, the acknowledgement timeout information would be lost (and the default used instead).
Some requests also don't properly expose the timeout mechanism in the REST layer, such as put / delete stored script. This PR fixes all that.

This is the 5.6 backport of #26189
@ywelsch ywelsch merged commit 01f6851 into elastic:master Aug 15, 2017
ywelsch added a commit that referenced this pull request Aug 15, 2017
…26189)

Due to the weird way of structuring the serialization code in AcknowledgedRequest, many request types
forgot to properly serialize the request timeout, for example "index deletion", "index rollover", "index
shrink", "putting pipeline", and other requests. This means that if those requests were not directly
sent to the master node, the acknowledgement timeout information would be lost (and the default used
instead).
Some requests also don't properly expose the timeout mechanism in the REST layer, such as put / delete
stored script. This commit fixes all that.
ywelsch added a commit that referenced this pull request Aug 15, 2017
…26189)

Due to the weird way of structuring the serialization code in AcknowledgedRequest, many request types
forgot to properly serialize the request timeout, for example "index deletion", "index rollover", "index
shrink", "putting pipeline", and other requests. This means that if those requests were not directly
sent to the master node, the acknowledgement timeout information would be lost (and the default used
instead).
Some requests also don't properly expose the timeout mechanism in the REST layer, such as put / delete
stored script. This commit fixes all that.
@ywelsch
Copy link
Contributor Author

ywelsch commented Aug 15, 2017

Thanks @nik9000 @s1monw

jasontedor added a commit to glefloch/elasticsearch that referenced this pull request Aug 16, 2017
* master: (458 commits)
  Prevent cluster internal `ClusterState.Custom` impls to leak to a client (elastic#26232)
  Add packaging test for systemd runtime directive
  [TEST] Reenable RareClusterStateIt#testDeleteCreateInOneBulk
  Serialize and expose timeout of acknowledged requests in REST layer (elastic#26189)
  (refactor) some opportunities to use diamond operator (elastic#25585)
  [DOCS] Clarified readme for testing a single page
  Settings: Add keystore.seed auto generated secure setting (elastic#26149)
  Update version information (elastic#25226)
  "result" : created -> "result" : "created" (elastic#25446)
  Set RuntimeDirectory (elastic#23526)
  Drop upgrade from full cluster restart tests (elastic#26224)
  Further improve docs for requests_per_second
  Docs disambiguate reindex's requests_per_second (elastic#26185)
  [DOCS] Cleanup link for ec2 discovery (elastic#26222)
  Fix document field equals and hash code test
  Use holder pattern for lazy deprecation loggers
  Settings: Add keystore creation to add commands (elastic#26126)
  Docs: Cleanup docs for ec2 discovery (elastic#26065)
  Fix NPE when `values` is omitted on percentile_ranks agg (elastic#26046)
  Several internal improvements to internal test cluster infra (elastic#26214)
  ...
@lcawl lcawl removed the v6.1.0 label Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed Indexing/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search. v6.0.0-beta2 v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants