You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use InMemoryNoOpCommitDirectory for archives indices only (#121210)
Since #118606 searchable snapshots shards are not expected to
write files on disk, with the exception of archives indices mounted
as searchable snapshots which require to rewrite the segment infos
file in a newer version.
Ideally we should be able to remove the usage of the
InMemoryNoOpCommitDirectory for non-archives searchable
snapshots indices and only rely on SearchableSnapshotDirectory
that throws on write operations. Similarly, starting 9.0 searchable
snapshots shards do not write files on disk and therefore should
be able to use a Directory implementation that forbids writes.
Searchable snapshots shards for indices created before 9.0
require a mutable directory for peer-recoveries.
In this change, we only allow writes for archives indices and
searchable snapshots created before 9.0.
Relates ES-10438
Copy file name to clipboardExpand all lines: x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/FrozenSearchableSnapshotsIntegTests.java
Copy file name to clipboardExpand all lines: x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/store/SearchableSnapshotDirectory.java
0 commit comments