Skip to content

Add new IndexVersion to unblock rolling upgrades#139611

Closed
romseygeek wants to merge 2 commits intoelastic:patch/serverless-fixfrom
romseygeek:patch/serverless-fix-2
Closed

Add new IndexVersion to unblock rolling upgrades#139611
romseygeek wants to merge 2 commits intoelastic:patch/serverless-fixfrom
romseygeek:patch/serverless-fix-2

Conversation

@romseygeek
Copy link
Copy Markdown
Contributor

No description provided.

@romseygeek romseygeek self-assigned this Dec 16, 2025
@romseygeek romseygeek added >non-issue :StorageEngine/Mapping The storage related side of mappings v9.3.0 labels Dec 16, 2025
@elasticsearchmachine elasticsearchmachine added serverless-linked Added by automation, don't add manually Team:StorageEngine labels Dec 16, 2025
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

Property.ServerlessPublic
);

private static final boolean STATEFUL_MODE_HACK = new FeatureFlag("doc_values_skipper").isEnabled();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What about doing this in IndexSettings's constructor (around line 1258):

if (scopedSettings.get(USE_DOC_VALUES_SKIPPER) == null && mode != IndexMode.TIME_SERIES) {
            if (DiscoveryNode.isStateless(nodeSettings)
                && version.onOrAfter(IndexVersions.STATELESS_SKIPPERS_ENABLED_FOR_TSDB)
                && version.before(IndexVersions.STATELESS_SKIPPERS_DISABLED_BY_DEFAULT)) {
                useDocValuesSkipper = true;
            } else {
                useDocValuesSkipper = false;
            }
        } else {
            useDocValuesSkipper = scopedSettings.get(USE_DOC_VALUES_SKIPPER);
        }

Then we don't need to STATEFUL_MODE_HACK constant?

public static final IndexVersion TIME_SERIES_USE_STORED_FIELDS_BLOOM_FILTER_FOR_ID = def(9_055_0_00, Version.LUCENE_10_3_2);
public static final IndexVersion AGG_METRIC_DOUBLE_REMOVE_POINTS = def(9_056_0_00, Version.LUCENE_10_3_2);
public static final IndexVersion STATELESS_SKIPPERS_ENABLED_FOR_TSDB = def(9_057_0_00, Version.LUCENE_10_3_2);
public static final IndexVersion STATELESS_SKIPPERS_DISABLED_BY_DEFAULT = def(9_058_0_00, Version.LUCENE_10_3_2);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also I think this needs to be a patch version? The 9_058_0_00 is also already taken in main?

@elastic-vault-github-plugin-prod elastic-vault-github-plugin-prod bot deleted the branch elastic:patch/serverless-fix December 16, 2025 23:12
@romseygeek
Copy link
Copy Markdown
Contributor Author

Superseded by #139670

@romseygeek romseygeek closed this Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue serverless-linked Added by automation, don't add manually :StorageEngine/Mapping The storage related side of mappings Team:StorageEngine v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants