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
The `full` option and `FlushType.NEW_WRITER` only exists to allow
realtime changes to two settings (`index.codec` and `index.concurrency`).
Those settings are very expert and don't really need to be updateable
in realtime.
Conflicts:
src/main/java/org/elasticsearch/index/engine/internal/InternalEngine.java
src/main/java/org/elasticsearch/index/shard/IndexShard.java
src/test/java/org/elasticsearch/index/engine/internal/InternalEngineTests.java
Copy file name to clipboardExpand all lines: rest-api-spec/api/indices.flush.json
-4
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,6 @@
16
16
"type" : "boolean",
17
17
"description" : "Whether a flush should be forced even if it is not necessarily needed ie. if no changes will be committed to the index. This is useful if transaction log IDs should be incremented even if no uncommitted changes are present. (This setting can be considered as internal)"
18
18
},
19
-
"full": {
20
-
"type" : "boolean",
21
-
"description" : "If set to true a new index writer is created and settings that have been changed related to the index writer will be refreshed. Note: if a full flush is required for a setting to take effect this will be part of the settings update process and it not required to be executed by the user. (This setting can be considered as internal)"
22
-
},
23
19
"wait_if_ongoing": {
24
20
"type" : "boolean",
25
21
"description" : "If set to true the flush operation will block until the flush can be executed if another flush operation is already executing. The default is false and will cause an exception to be thrown on the shard level if another flush operation is already running."
@@ -78,7 +78,7 @@ public final class EngineConfig {
78
78
/**
79
79
* Index setting for index concurrency / number of threadstates in the indexwriter.
80
80
* The default is depending on the number of CPUs in the system. We use a 0.65 the number of CPUs or at least {@value org.apache.lucene.index.IndexWriterConfig#DEFAULT_MAX_THREAD_STATES}
@@ -254,9 +245,7 @@ public boolean isEnableGcDeletes() {
254
245
/**
255
246
* Returns the {@link Codec} used in the engines {@link org.apache.lucene.index.IndexWriter}
256
247
* <p>
257
-
* Note: this settings is only read on startup and if a new writer is created. This happens either due to a
258
-
* settings change in the {@link org.elasticsearch.index.engine.EngineConfig.EngineSettingsListener} or if
259
-
* {@link Engine#flush(org.elasticsearch.index.engine.Engine.FlushType, boolean, boolean)} with {@link org.elasticsearch.index.engine.Engine.FlushType#NEW_WRITER} is executed.
248
+
* Note: this settings is only read on startup.
260
249
* </p>
261
250
*/
262
251
publicCodecgetCodec() {
@@ -425,20 +414,6 @@ public final void onRefreshSettings(Settings settings) {
0 commit comments