Skip to content

Serialize and expose timeout of acknowledged requests in REST layer (ES 5.6)#26213

Merged
ywelsch merged 1 commit intoelastic:5.6from
ywelsch:fix/serialize-timeout-on-ackedrequest-5.6
Aug 15, 2017
Merged

Serialize and expose timeout of acknowledged requests in REST layer (ES 5.6)#26213
ywelsch merged 1 commit intoelastic:5.6from
ywelsch:fix/serialize-timeout-on-ackedrequest-5.6

Conversation

@ywelsch
Copy link
Copy Markdown
Contributor

@ywelsch ywelsch commented Aug 15, 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.

This is the 5.6 backport of #26189

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/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search. >bug v5.6.0 labels Aug 15, 2017
Copy link
Copy Markdown
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 ywelsch merged commit 4663098 into elastic:5.6 Aug 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Distributed/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search. v5.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants