|
9 | 9 | package org.elasticsearch.repositories.azure; |
10 | 10 |
|
11 | 11 | import com.azure.core.util.serializer.JacksonAdapter; |
| 12 | + |
12 | 13 | import org.apache.lucene.util.SetOnce; |
13 | 14 | import org.elasticsearch.client.Client; |
14 | 15 | import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; |
15 | 16 | import org.elasticsearch.cluster.service.ClusterService; |
16 | 17 | import org.elasticsearch.common.io.stream.NamedWriteableRegistry; |
17 | 18 | import org.elasticsearch.common.settings.Setting; |
18 | 19 | import org.elasticsearch.common.settings.Settings; |
19 | | -import org.elasticsearch.common.settings.SettingsException; |
20 | | -import org.elasticsearch.core.TimeValue; |
21 | 20 | import org.elasticsearch.common.util.BigArrays; |
22 | | -import org.elasticsearch.xcontent.NamedXContentRegistry; |
| 21 | +import org.elasticsearch.core.TimeValue; |
23 | 22 | import org.elasticsearch.env.Environment; |
24 | 23 | import org.elasticsearch.env.NodeEnvironment; |
25 | 24 | import org.elasticsearch.indices.recovery.RecoverySettings; |
|
33 | 32 | import org.elasticsearch.threadpool.ScalingExecutorBuilder; |
34 | 33 | import org.elasticsearch.threadpool.ThreadPool; |
35 | 34 | import org.elasticsearch.watcher.ResourceWatcherService; |
| 35 | +import org.elasticsearch.xcontent.NamedXContentRegistry; |
36 | 36 |
|
37 | 37 | import java.util.Arrays; |
38 | 38 | import java.util.Collection; |
@@ -132,9 +132,6 @@ public static ExecutorBuilder<?> nettyEventLoopExecutorBuilder(Settings settings |
132 | 132 | public void reload(Settings settings) { |
133 | 133 | // secure settings should be readable |
134 | 134 | final Map<String, AzureStorageSettings> clientsSettings = AzureStorageSettings.load(settings); |
135 | | - if (clientsSettings.isEmpty()) { |
136 | | - throw new SettingsException("If you want to use an azure repository, you need to define a client configuration."); |
137 | | - } |
138 | 135 | AzureStorageService storageService = azureStoreService.get(); |
139 | 136 | assert storageService != null; |
140 | 137 | storageService.refreshSettings(clientsSettings); |
|
0 commit comments