|
73 | 73 | import org.opensearch.index.cache.IndexCache;
|
74 | 74 | import org.opensearch.index.cache.bitset.BitsetFilterCache;
|
75 | 75 | import org.opensearch.index.cache.query.QueryCache;
|
| 76 | +import org.opensearch.index.compositeindex.CompositeIndexSettings; |
76 | 77 | import org.opensearch.index.engine.Engine;
|
77 | 78 | import org.opensearch.index.engine.EngineConfigFactory;
|
78 | 79 | import org.opensearch.index.engine.EngineFactory;
|
@@ -192,6 +193,7 @@ public class IndexService extends AbstractIndexComponent implements IndicesClust
|
192 | 193 | private final RecoverySettings recoverySettings;
|
193 | 194 | private final RemoteStoreSettings remoteStoreSettings;
|
194 | 195 | private final FileCache fileCache;
|
| 196 | + private final CompositeIndexSettings compositeIndexSettings; |
195 | 197 |
|
196 | 198 | public IndexService(
|
197 | 199 | IndexSettings indexSettings,
|
@@ -228,7 +230,8 @@ public IndexService(
|
228 | 230 | Supplier<TimeValue> clusterDefaultRefreshIntervalSupplier,
|
229 | 231 | RecoverySettings recoverySettings,
|
230 | 232 | RemoteStoreSettings remoteStoreSettings,
|
231 |
| - FileCache fileCache |
| 233 | + FileCache fileCache, |
| 234 | + CompositeIndexSettings compositeIndexSettings |
232 | 235 | ) {
|
233 | 236 | super(indexSettings);
|
234 | 237 | this.allowExpensiveQueries = allowExpensiveQueries;
|
@@ -306,6 +309,7 @@ public IndexService(
|
306 | 309 | this.translogFactorySupplier = translogFactorySupplier;
|
307 | 310 | this.recoverySettings = recoverySettings;
|
308 | 311 | this.remoteStoreSettings = remoteStoreSettings;
|
| 312 | + this.compositeIndexSettings = compositeIndexSettings; |
309 | 313 | this.fileCache = fileCache;
|
310 | 314 | updateFsyncTaskIfNecessary();
|
311 | 315 | }
|
@@ -381,6 +385,7 @@ public IndexService(
|
381 | 385 | clusterDefaultRefreshIntervalSupplier,
|
382 | 386 | recoverySettings,
|
383 | 387 | remoteStoreSettings,
|
| 388 | + null, |
384 | 389 | null
|
385 | 390 | );
|
386 | 391 | }
|
@@ -1110,6 +1115,10 @@ private void rescheduleRefreshTasks() {
|
1110 | 1115 | }
|
1111 | 1116 | }
|
1112 | 1117 |
|
| 1118 | + public CompositeIndexSettings getCompositeIndexSettings() { |
| 1119 | + return compositeIndexSettings; |
| 1120 | + } |
| 1121 | + |
1113 | 1122 | /**
|
1114 | 1123 | * Shard Store Deleter Interface
|
1115 | 1124 | *
|
|
0 commit comments