Skip to content

Tiered directory wiring refactor#8

Open
Bukhtawar wants to merge 5 commits intonishchay21:tiered-directory-wiringfrom
Bukhtawar:tiered-directory-wiring-refactor
Open

Tiered directory wiring refactor#8
Bukhtawar wants to merge 5 commits intonishchay21:tiered-directory-wiringfrom
Bukhtawar:tiered-directory-wiring-refactor

Conversation

@Bukhtawar
Copy link
Copy Markdown

@Bukhtawar Bukhtawar commented Apr 27, 2026

Description

The change was to TieredDataFormatAwareStoreDirectoryFactory. Previously, step 3 called dataFormatRegistry.getTieredDirectories() which asked each DataFormatPlugin.getTieredDirectory() for a custom directory

Now step 3 iterates dataFormatRegistry.getFormatDescriptors(indexSettings) and creates a dedicated TieredDirectory per registered format. Each format (e.g., "parquet") gets its own TieredDirectory instance in the formatDirectories map, sharing the same SubdirectoryAwareDirectory, RemoteSegmentStoreDirectory, and FileCache, but with independent prefetch settings. TieredSubdirectoryAwareDirectory.resolveFormatDirectory() now actually routes format-prefixed files to their dedicated TieredDirectory.

Related Issues

Resolves # opensearch-project#21361

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

nishchay21 and others added 5 commits April 26, 2026 21:21
…ting

Signed-off-by: nishchay21 <nishcha@amazon.com>
…ting

Signed-off-by: nishchay21 <nishcha@amazon.com>
Signed-off-by: Bukhtawar Khan <bukhtawa@amazon.com>
Signed-off-by: Bukhtawar Khan <bukhtawa@amazon.com>
ShardPath shardPath,
DataFormatRegistry dataFormatRegistry,
IndexSettings indexSettings
boolean directDelegate
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just used for logging already removed in new revision

);
}

TieredDirectory formatTiered = new TieredDirectory(
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a directory implementation per format given by format the plane old tiered directory will not work here.

@nishchay21 nishchay21 force-pushed the tiered-directory-wiring branch 7 times, most recently from 656459a to 74cc806 Compare May 2, 2026 13:19
@nishchay21 nishchay21 force-pushed the tiered-directory-wiring branch from 74cc806 to 5e08a33 Compare May 7, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants