Skip to content

Commit 5506cfd

Browse files
committed
Merge branch 'ccr' into engine-factory-provider
* ccr: (42 commits) [DOCS] Added info about snapshotting your data before an upgrade. Add documentation about disabling `_field_names`. (elastic#26813) Remove UnsortedNumericDoubleValues (elastic#26817) Fix IndexOutOfBoundsException in histograms for NaN doubles (elastic#26787) (elastic#26856) [TEST] Added skipping the `headers` feature to the Bulk REST YAML test Update type-field.asciidoc Fix search_after with geo distance sorting (elastic#26891) Use proper logging placeholder for Netty logging Add Netty channel information on write and flush failure Remove deploying in JBoss documentation Document JVM option MaxFDLimit for macOS () Add additional low-level logging handler () Unwrap causes when maybe dying Change log level on write and flush failure to warn [TEST] add test to ensure legacy list syntax in yml works fine Bump BWC version for settings serialization to 6.1.0 Removed void token filter entries and added two tests Added Bengali Analyzer to Elasticsearch with respect to the lucene update(PR#238) Fix toString() in SnapshotStatus (elastic#26852) elastic#26870 change bwc version for fuzzy_transpositions to 6.1 after backport ...
2 parents 0ba19c6 + b57cb83 commit 5506cfd

File tree

195 files changed

+2310
-1131
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+2310
-1131
lines changed

TESTING.asciidoc

Lines changed: 1 addition & 0 deletions

Vagrantfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ Vagrant.configure(2) do |config|
6464
config.vm.box = "elastic/fedora-25-x86_64"
6565
dnf_common config
6666
end
67+
config.vm.define "fedora-26" do |config|
68+
config.vm.box = "elastic/fedora-26-x86_64"
69+
dnf_common config
70+
end
6771
config.vm.define "opensuse-42" do |config|
6872
config.vm.box = "elastic/opensuse-42-x86_64"
6973
opensuse_common config

buildSrc/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ dependencies {
9292
compile 'com.netflix.nebula:gradle-info-plugin:3.0.3'
9393
compile 'org.eclipse.jgit:org.eclipse.jgit:3.2.0.201312181205-r'
9494
compile 'com.perforce:p4java:2012.3.551082' // THIS IS SUPPOSED TO BE OPTIONAL IN THE FUTURE....
95-
compile 'de.thetaphi:forbiddenapis:2.3'
95+
compile 'de.thetaphi:forbiddenapis:2.4.1'
9696
compile 'org.apache.rat:apache-rat:0.11'
9797
compile "org.elasticsearch:jna:4.4.0-1"
9898
}

buildSrc/src/main/groovy/org/elasticsearch/gradle/vagrant/VagrantTestPlugin.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class VagrantTestPlugin implements Plugin<Project> {
2020
'debian-8',
2121
'debian-9',
2222
'fedora-25',
23+
'fedora-26',
2324
'oel-6',
2425
'oel-7',
2526
'opensuse-42',

buildSrc/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# When updating elasticsearch, please update 'rest' version in core/src/main/resources/org/elasticsearch/bootstrap/test-framework.policy
22
elasticsearch = 7.0.0-alpha1
3-
lucene = 7.0.0
3+
lucene = 7.1.0-snapshot-f33ed4ba12a
44

55
# optional dependencies
66
spatial4j = 0.6

core/licenses/lucene-NOTICE.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,14 @@ The KStem stemmer in
5454
was developed by Bob Krovetz and Sergio Guzman-Lara (CIIR-UMass Amherst)
5555
under the BSD-license.
5656

57-
The Arabic,Persian,Romanian,Bulgarian, and Hindi analyzers (common) come with a default
57+
The Arabic,Persian,Romanian,Bulgarian, Hindi and Bengali analyzers (common) come with a default
5858
stopword list that is BSD-licensed created by Jacques Savoy. These files reside in:
5959
analysis/common/src/resources/org/apache/lucene/analysis/ar/stopwords.txt,
6060
analysis/common/src/resources/org/apache/lucene/analysis/fa/stopwords.txt,
6161
analysis/common/src/resources/org/apache/lucene/analysis/ro/stopwords.txt,
6262
analysis/common/src/resources/org/apache/lucene/analysis/bg/stopwords.txt,
63-
analysis/common/src/resources/org/apache/lucene/analysis/hi/stopwords.txt
63+
analysis/common/src/resources/org/apache/lucene/analysis/hi/stopwords.txt,
64+
analysis/common/src/resources/org/apache/lucene/analysis/bn/stopwords.txt
6465
See http://members.unine.ch/jacques.savoy/clef/index.html.
6566

6667
The German,Spanish,Finnish,French,Hungarian,Italian,Portuguese,Russian and Swedish light stemmers

core/licenses/lucene-analyzers-common-7.0.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a59ac3bdd17becc848f319fb77994060661c2c71

core/licenses/lucene-backward-codecs-7.0.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
47f560086db8683b5be26911fae3721d8b0da465

core/licenses/lucene-core-7.0.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
17bd8e886ac2e763c27a507e697f78e43103afd3

core/licenses/lucene-grouping-7.0.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bb7d5f5f6dd0bada3991828b8687a35c90de76ca

core/licenses/lucene-highlighter-7.0.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
f024368b33bfb7c1589aaf424992e474c4e3be38

core/licenses/lucene-join-7.0.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7b525cb2e2c8403543fefc09b972c78b86d2f0da

core/licenses/lucene-memory-7.0.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
61cc3ced15fa80d8f97affe0c8df9818eeb8af49

core/licenses/lucene-misc-7.0.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
03a71b5875d25576c9f8992822db65fb181f4328

core/licenses/lucene-queries-7.0.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9c07c15b2c6f8bd3d75e0f53fff5631f012bff98

core/licenses/lucene-queryparser-7.0.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
e0a7815981d096d96e7dc41b1c063cd78c91132d

core/licenses/lucene-sandbox-7.0.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1ea14867a6bc545fb2e09dd1f31b48523cdbc040

core/licenses/lucene-spatial-7.0.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
58ce824ebc6126e37ff232c96a561a659377a873

core/licenses/lucene-spatial-extras-7.0.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3fcd89a8cda5ee2049c189b06b5e30258b1aa198

core/licenses/lucene-spatial3d-7.0.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1d1ada8fbb1b2bbbc88e9f29e28802a7b44a6665

core/licenses/lucene-suggest-7.0.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fb7f18e6a81899e3ac95760b56bea21ebf143cf9

core/src/main/java/org/elasticsearch/Version.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ public class Version implements Comparable<Version> {
118118
new Version(V_6_0_0_rc2_ID, org.apache.lucene.util.Version.LUCENE_7_0_0);
119119
public static final int V_6_1_0_ID = 6010099;
120120
public static final Version V_6_1_0 =
121-
new Version(V_6_1_0_ID, org.apache.lucene.util.Version.LUCENE_7_0_0);
121+
new Version(V_6_1_0_ID, org.apache.lucene.util.Version.LUCENE_7_1_0);
122122
public static final int V_7_0_0_alpha1_ID = 7000001;
123123
public static final Version V_7_0_0_alpha1 =
124-
new Version(V_7_0_0_alpha1_ID, org.apache.lucene.util.Version.LUCENE_7_0_0);
124+
new Version(V_7_0_0_alpha1_ID, org.apache.lucene.util.Version.LUCENE_7_1_0);
125125
public static final Version CURRENT = V_7_0_0_alpha1;
126126

127127
// unreleased versions must be added to the above list with the suffix _UNRELEASED (with the exception of CURRENT)

core/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/status/SnapshotStatus.java

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@
2020
package org.elasticsearch.action.admin.cluster.snapshots.status;
2121

2222
import org.elasticsearch.cluster.SnapshotsInProgress.State;
23+
import org.elasticsearch.common.Strings;
2324
import org.elasticsearch.common.io.stream.StreamInput;
2425
import org.elasticsearch.common.io.stream.StreamOutput;
2526
import org.elasticsearch.common.io.stream.Streamable;
26-
import org.elasticsearch.common.xcontent.ToXContent.Params;
2727
import org.elasticsearch.common.xcontent.ToXContentObject;
2828
import org.elasticsearch.common.xcontent.XContentBuilder;
29-
import org.elasticsearch.common.xcontent.XContentFactory;
3029
import org.elasticsearch.snapshots.Snapshot;
3130

3231
import java.io.IOException;
@@ -160,15 +159,7 @@ public static SnapshotStatus readSnapshotStatus(StreamInput in) throws IOExcepti
160159

161160
@Override
162161
public String toString() {
163-
try {
164-
XContentBuilder builder = XContentFactory.jsonBuilder().prettyPrint();
165-
builder.startObject();
166-
toXContent(builder, EMPTY_PARAMS);
167-
builder.endObject();
168-
return builder.string();
169-
} catch (IOException e) {
170-
return "{ \"error\" : \"" + e.getMessage() + "\"}";
171-
}
162+
return Strings.toString(this, true, false);
172163
}
173164

174165
/**

core/src/main/java/org/elasticsearch/action/admin/indices/settings/get/TransportGetSettingsAction.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,8 @@ protected void masterOperation(GetSettingsRequest request, ClusterState state, A
8383
if (request.humanReadable()) {
8484
settings = IndexMetaData.addHumanReadableSettings(settings);
8585
}
86-
if (!CollectionUtils.isEmpty(request.names())) {
87-
Settings.Builder settingsBuilder = Settings.builder();
88-
for (Map.Entry<String, String> entry : settings.getAsMap().entrySet()) {
89-
if (Regex.simpleMatch(request.names(), entry.getKey())) {
90-
settingsBuilder.put(entry.getKey(), entry.getValue());
91-
}
92-
}
93-
settings = settingsBuilder.build();
86+
if (CollectionUtils.isEmpty(request.names()) == false) {
87+
settings = settings.filter(k -> Regex.simpleMatch(request.names(), k));
9488
}
9589
indexToSettingsBuilder.put(concreteIndex.getName(), settings);
9690
}

core/src/main/java/org/elasticsearch/action/search/SearchTransportService.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import org.elasticsearch.search.fetch.ShardFetchRequest;
4141
import org.elasticsearch.search.fetch.ShardFetchSearchRequest;
4242
import org.elasticsearch.search.internal.InternalScrollSearchRequest;
43+
import org.elasticsearch.search.internal.ShardSearchRequest;
4344
import org.elasticsearch.search.internal.ShardSearchTransportRequest;
4445
import org.elasticsearch.search.query.QuerySearchRequest;
4546
import org.elasticsearch.search.query.QuerySearchResult;
@@ -320,7 +321,8 @@ public void messageReceived(ScrollFreeContextRequest request, TransportChannel c
320321
channel.sendResponse(new SearchFreeContextResponse(freed));
321322
}
322323
});
323-
TransportActionProxy.registerProxyAction(transportService, FREE_CONTEXT_SCROLL_ACTION_NAME, SearchFreeContextResponse::new);
324+
TransportActionProxy.registerProxyAction(transportService, FREE_CONTEXT_SCROLL_ACTION_NAME,
325+
(Supplier<TransportResponse>) SearchFreeContextResponse::new);
324326
transportService.registerRequestHandler(FREE_CONTEXT_ACTION_NAME, ThreadPool.Names.SAME, SearchFreeContextRequest::new,
325327
new TaskAwareTransportRequestHandler<SearchFreeContextRequest>() {
326328
@Override
@@ -329,7 +331,8 @@ public void messageReceived(SearchFreeContextRequest request, TransportChannel c
329331
channel.sendResponse(new SearchFreeContextResponse(freed));
330332
}
331333
});
332-
TransportActionProxy.registerProxyAction(transportService, FREE_CONTEXT_ACTION_NAME, SearchFreeContextResponse::new);
334+
TransportActionProxy.registerProxyAction(transportService, FREE_CONTEXT_ACTION_NAME,
335+
(Supplier<TransportResponse>) SearchFreeContextResponse::new);
333336
transportService.registerRequestHandler(CLEAR_SCROLL_CONTEXTS_ACTION_NAME, () -> TransportRequest.Empty.INSTANCE,
334337
ThreadPool.Names.SAME, new TaskAwareTransportRequestHandler<TransportRequest.Empty>() {
335338
@Override
@@ -339,7 +342,7 @@ public void messageReceived(TransportRequest.Empty request, TransportChannel cha
339342
}
340343
});
341344
TransportActionProxy.registerProxyAction(transportService, CLEAR_SCROLL_CONTEXTS_ACTION_NAME,
342-
() -> TransportResponse.Empty.INSTANCE);
345+
() -> TransportResponse.Empty.INSTANCE);
343346

344347
transportService.registerRequestHandler(DFS_ACTION_NAME, ThreadPool.Names.SAME, ShardSearchTransportRequest::new,
345348
new TaskAwareTransportRequestHandler<ShardSearchTransportRequest>() {
@@ -394,7 +397,8 @@ public void onFailure(Exception e) {
394397
});
395398
}
396399
});
397-
TransportActionProxy.registerProxyAction(transportService, QUERY_ACTION_NAME, QuerySearchResult::new);
400+
TransportActionProxy.registerProxyAction(transportService, QUERY_ACTION_NAME,
401+
(request) -> ((ShardSearchRequest)request).numberOfShards() == 1 ? QueryFetchSearchResult::new : QuerySearchResult::new);
398402

399403
transportService.registerRequestHandler(QUERY_ID_ACTION_NAME, ThreadPool.Names.SEARCH, QuerySearchRequest::new,
400404
new TaskAwareTransportRequestHandler<QuerySearchRequest>() {
@@ -455,7 +459,8 @@ public void messageReceived(ShardSearchTransportRequest request, TransportChanne
455459
channel.sendResponse(new CanMatchResponse(canMatch));
456460
}
457461
});
458-
TransportActionProxy.registerProxyAction(transportService, QUERY_CAN_MATCH_NAME, CanMatchResponse::new);
462+
TransportActionProxy.registerProxyAction(transportService, QUERY_CAN_MATCH_NAME,
463+
(Supplier<TransportResponse>) CanMatchResponse::new);
459464
}
460465

461466
public static final class CanMatchResponse extends SearchPhaseResult {

core/src/main/java/org/elasticsearch/cluster/metadata/IndexMetaData.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,9 +1078,7 @@ public static void toXContent(IndexMetaData indexMetaData, XContentBuilder build
10781078
boolean binary = params.paramAsBoolean("binary", false);
10791079

10801080
builder.startObject(KEY_SETTINGS);
1081-
for (Map.Entry<String, String> entry : indexMetaData.getSettings().getAsMap().entrySet()) {
1082-
builder.field(entry.getKey(), entry.getValue());
1083-
}
1081+
indexMetaData.getSettings().toXContent(builder, new MapParams(Collections.singletonMap("flat_settings", "true")));
10841082
builder.endObject();
10851083

10861084
builder.startArray(KEY_MAPPINGS);

core/src/main/java/org/elasticsearch/cluster/metadata/MetaData.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,17 +1000,13 @@ public static void toXContent(MetaData metaData, XContentBuilder builder, ToXCon
10001000

10011001
if (!metaData.persistentSettings().isEmpty()) {
10021002
builder.startObject("settings");
1003-
for (Map.Entry<String, String> entry : metaData.persistentSettings().getAsMap().entrySet()) {
1004-
builder.field(entry.getKey(), entry.getValue());
1005-
}
1003+
metaData.persistentSettings().toXContent(builder, new MapParams(Collections.singletonMap("flat_settings", "true")));
10061004
builder.endObject();
10071005
}
10081006

10091007
if (context == XContentContext.API && !metaData.transientSettings().isEmpty()) {
10101008
builder.startObject("transient_settings");
1011-
for (Map.Entry<String, String> entry : metaData.transientSettings().getAsMap().entrySet()) {
1012-
builder.field(entry.getKey(), entry.getValue());
1013-
}
1009+
metaData.transientSettings().toXContent(builder, new MapParams(Collections.singletonMap("flat_settings", "true")));
10141010
builder.endObject();
10151011
}
10161012

core/src/main/java/org/elasticsearch/cluster/metadata/MetaDataUpdateSettingsService.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public void updateSettings(final UpdateSettingsClusterStateUpdateRequest request
165165

166166
indexScopedSettings.validate(normalizedSettings);
167167
// never allow to change the number of shards
168-
for (String key : normalizedSettings.getKeys()) {
168+
for (String key : normalizedSettings.keySet()) {
169169
Setting setting = indexScopedSettings.get(key);
170170
assert setting != null; // we already validated the normalized settings
171171
settingsForClosedIndices.copy(key, normalizedSettings);
@@ -211,8 +211,7 @@ public ClusterState execute(ClusterState currentState) {
211211

212212
if (!skippedSettings.isEmpty() && !openIndices.isEmpty()) {
213213
throw new IllegalArgumentException(String.format(Locale.ROOT,
214-
"Can't update non dynamic settings [%s] for open indices %s", skippedSettings, openIndices
215-
));
214+
"Can't update non dynamic settings [%s] for open indices %s", skippedSettings, openIndices));
216215
}
217216

218217
int updatedNumberOfReplicas = openSettings.getAsInt(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, -1);

core/src/main/java/org/elasticsearch/cluster/node/DiscoveryNodeFilters.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import java.util.HashMap;
3131
import java.util.Map;
3232
import java.util.function.BiConsumer;
33-
import java.util.function.Consumer;
3433

3534
public class DiscoveryNodeFilters {
3635

@@ -56,10 +55,6 @@ public enum OpType {
5655
}
5756
};
5857

59-
public static DiscoveryNodeFilters buildFromSettings(OpType opType, String prefix, Settings settings) {
60-
return buildFromKeyValue(opType, settings.getByPrefix(prefix).getAsMap());
61-
}
62-
6358
public static DiscoveryNodeFilters buildFromKeyValue(OpType opType, Map<String, String> filters) {
6459
Map<String, String[]> bFilters = new HashMap<>();
6560
for (Map.Entry<String, String> entry : filters.entrySet()) {

core/src/main/java/org/elasticsearch/common/logging/ESLoggerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private ESLoggerFactory() {
3737

3838
public static final Setting<Level> LOG_DEFAULT_LEVEL_SETTING =
3939
new Setting<>("logger.level", Level.INFO.name(), Level::valueOf, Property.NodeScope);
40-
public static final Setting<Level> LOG_LEVEL_SETTING =
40+
public static final Setting.AffixSetting<Level> LOG_LEVEL_SETTING =
4141
Setting.prefixKeySetting("logger.", (key) -> new Setting<>(key, Level.INFO.name(), Level::valueOf, Property.Dynamic,
4242
Property.NodeScope));
4343

core/src/main/java/org/elasticsearch/common/logging/LogConfigurator.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
import java.util.ArrayList;
5353
import java.util.EnumSet;
5454
import java.util.List;
55-
import java.util.Map;
5655
import java.util.Objects;
5756
import java.util.Set;
5857
import java.util.concurrent.atomic.AtomicBoolean;
@@ -182,15 +181,12 @@ private static void configureLoggerLevels(final Settings settings) {
182181
final Level level = ESLoggerFactory.LOG_DEFAULT_LEVEL_SETTING.get(settings);
183182
Loggers.setLevel(ESLoggerFactory.getRootLogger(), level);
184183
}
185-
186-
final Map<String, String> levels = settings.filter(ESLoggerFactory.LOG_LEVEL_SETTING::match).getAsMap();
187-
for (final String key : levels.keySet()) {
184+
ESLoggerFactory.LOG_LEVEL_SETTING.getAllConcreteSettings(settings)
188185
// do not set a log level for a logger named level (from the default log setting)
189-
if (!key.equals(ESLoggerFactory.LOG_DEFAULT_LEVEL_SETTING.getKey())) {
190-
final Level level = ESLoggerFactory.LOG_LEVEL_SETTING.getConcreteSetting(key).get(settings);
191-
Loggers.setLevel(ESLoggerFactory.getLogger(key.substring("logger.".length())), level);
192-
}
193-
}
186+
.filter(s -> s.getKey().equals(ESLoggerFactory.LOG_DEFAULT_LEVEL_SETTING.getKey()) == false).forEach(s -> {
187+
final Level level = s.get(settings);
188+
Loggers.setLevel(ESLoggerFactory.getLogger(s.getKey().substring("logger.".length())), level);
189+
});
194190
}
195191

196192
/**

0 commit comments

Comments
 (0)