Skip to content

Commit 03aecdc

Browse files
committed
Add changlog and address review comments
Signed-off-by: Shreyansh Ray <[email protected]>
1 parent c7805e1 commit 03aecdc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1212
- Bump OpenSearch Core main branch to 3.0.0 ([#18039](https://github.com/opensearch-project/OpenSearch/pull/18039))
1313
- Update API of Message in index to add the timestamp for lag calculation in ingestion polling ([#17977](https://github.com/opensearch-project/OpenSearch/pull/17977/))
1414
- Enabled default throttling for all tasks submitted to cluster manager ([#17711](https://github.com/opensearch-project/OpenSearch/pull/17711))
15+
- Add composite directory factory ([#17988](https://github.com/opensearch-project/OpenSearch/pull/17988))
1516

1617
### Changed
1718
- Change the default max header size from 8KB to 16KB. ([#18024](https://github.com/opensearch-project/OpenSearch/pull/18024))

server/src/main/java/org/opensearch/index/IndexModule.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -822,14 +822,14 @@ private static IndexStorePlugin.DirectoryFactory getDirectoryFactory(
822822

823823
private static IndexStorePlugin.CompositeDirectoryFactory getCompositeDirectoryFactory(
824824
final IndexSettings indexSettings,
825-
final Map<String, IndexStorePlugin.CompositeDirectoryFactory> indexStoreFactories
825+
final Map<String, IndexStorePlugin.CompositeDirectoryFactory> compositeDirectoryFactories
826826
) {
827827
final String compositeStoreType = indexSettings.getValue(INDEX_COMPOSITE_STORE_TYPE_SETTING);
828828
final IndexStorePlugin.CompositeDirectoryFactory factory;
829-
if (compositeStoreType.isEmpty() || indexStoreFactories.isEmpty()) {
829+
if (compositeStoreType.isEmpty() || compositeDirectoryFactories.isEmpty()) {
830830
factory = DEFAULT_COMPOSITE_DIRECTORY_FACTORY;
831831
} else {
832-
factory = indexStoreFactories.get(compositeStoreType);
832+
factory = compositeDirectoryFactories.get(compositeStoreType);
833833
if (factory == null) {
834834
throw new IllegalArgumentException("Unknown composite store type [" + compositeStoreType + "]");
835835
}

0 commit comments

Comments
 (0)