Skip to content

Conversation

@dnhatn
Copy link
Member

@dnhatn dnhatn commented Jul 1, 2020

When the documents are large, a follower can receive a partial response
because the requesting range of operations is capped by
max_read_request_size instead of max_read_request_operation_count. In
this case, the follower will continue reading the subsequent ranges
without checking the remaining size of the buffer. The buffer then can
use more memory than max_write_buffer_size and even causes OOM.

Backport of #58620

When the documents are large, a follower can receive a partial response 
because the requesting range of operations is capped by
max_read_request_size instead of max_read_request_operation_count. In
this case, the follower will continue reading the subsequent ranges
without checking the remaining size of the buffer. The buffer then can
use more memory than max_write_buffer_size and even causes OOM.
@dnhatn dnhatn added the backport label Jul 1, 2020
@dnhatn
Copy link
Member Author

dnhatn commented Jul 1, 2020

run elasticsearch-ci/2

@dnhatn dnhatn merged commit f63cbad into elastic:7.x Jul 1, 2020
@dnhatn dnhatn deleted the 7.x-partial-reads branch July 1, 2020 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant