Skip to content

Commit 0aee8b0

Browse files
Blob Store compress default to true
Changed default of compress setting from false to true for blob store repositories. This aligns the code with documentation and also seems like the better default.
1 parent 2924370 commit 0aee8b0

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

docs/reference/migration/migrate_8_0/snapshots.asciidoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,14 @@ The `repositories.fs.compress` setting has been removed.
1111

1212
Instead use the repository specific `compress` setting to enable compression. See <<modules-snapshots>> for information
1313
on the `compress` setting.
14+
15+
[float]
16+
==== Compression of meta data files is now default on
17+
18+
Previously, the default value for `compress` was `false`. The default has been changed to `true`. This aligns the
19+
default with documentation.
20+
21+
This change will affect both newly created repositories and existing repositories where `compress=false` has not been
22+
explicitly specified.
23+
24+
For more information on the compress option, see <<modules-snapshots>>

server/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public abstract class BlobStoreRepository extends AbstractLifecycleComponent imp
199199
* files that are already compressed by default. Changing the setting does not invalidate existing files since reads
200200
* do not observe the setting, instead they examine the file to see if it is compressed or not.
201201
*/
202-
public static final Setting<Boolean> COMPRESS_SETTING = Setting.boolSetting("compress", false, Setting.Property.NodeScope);
202+
public static final Setting<Boolean> COMPRESS_SETTING = Setting.boolSetting("compress", true, Setting.Property.NodeScope);
203203

204204
private final Settings settings;
205205

0 commit comments

Comments
 (0)