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

Use reader wrapper in ReadOnlyEngine #75724

Merged
merged 2 commits into from
Jul 27, 2021

Conversation

ywelsch
Copy link
Contributor

@ywelsch ywelsch commented Jul 27, 2021

Ensures the reader wrapper is always used in ReadOnlyEngine. To test this PR, I enabled security on the searchable snapshot REST tests.

@ywelsch ywelsch added >bug :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. v8.0.0 v7.14.1 labels Jul 27, 2021
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Jul 27, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

- match: { nodes.$node_id.shared_cache.bytes_written: "0b" }
- match: { nodes.$node_id.shared_cache.bytes_written_in_bytes: 0 }
- match: { nodes.$node_id.shared_cache.evictions: 0 }
- gte: { nodes.$node_id.shared_cache.reads: 0 }
Copy link
Contributor Author

@ywelsch ywelsch Jul 27, 2021

Choose a reason for hiding this comment

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

This is an interesting side-effect here because we now actually start using the cache.

@ywelsch ywelsch requested a review from jimczi July 27, 2021 09:23
Copy link
Contributor

@jimczi jimczi 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 5096097 into elastic:master Jul 27, 2021
ywelsch added a commit that referenced this pull request Jul 27, 2021
Ensures the reader wrapper is always used in ReadOnlyEngine.
ywelsch added a commit that referenced this pull request Jul 27, 2021
Ensures the reader wrapper is always used in ReadOnlyEngine.
ywangd pushed a commit to ywangd/elasticsearch that referenced this pull request Jul 30, 2021
Ensures the reader wrapper is always used in ReadOnlyEngine.
@tlrx
Copy link
Member

tlrx commented Aug 2, 2021

Thanks for fixing this Yannick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v7.14.0 v7.15.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants