Skip to content

Conversation

@kkrik-es
Copy link
Contributor

source.mode will soon be deprecated, in favor of the corresponding index setting.

Fixes #115860

@kkrik-es kkrik-es added >test Issues or PRs that are addressing/adding tests auto-backport Automatically create backport pull requests when merged Team:StorageEngine :StorageEngine/Mapping The storage related side of mappings v8.17.0 labels Oct 30, 2024
@kkrik-es kkrik-es self-assigned this Oct 30, 2024
- match: { test_standard_index_mode.mappings._source.mode: stored }

---
create an index with time_series index mode and synthetic source:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These tests are now repeated above, since there's only one way to configure source mode.

mapping.source.mode: synthetic

---
modify source mapping from stored to disabled after index creation:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These tests are redundant, there's no way to configure source mode in mapping and updating the setting is covered in the test right above.

@kkrik-es kkrik-es marked this pull request as ready for review October 31, 2024 14:35
@kkrik-es kkrik-es requested a review from a team as a code owner October 31, 2024 14:35
@kkrik-es kkrik-es requested a review from martijnvg October 31, 2024 14:35
@elasticsearchmachine
Copy link
Collaborator

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

@salvatore-campagna
Copy link
Contributor

LGTM

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

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

LGTM

- match: { test_index.mappings.properties.foo.meta.baz: "quux" }

---
"disabling synthetic source fails":
Copy link
Member

Choose a reason for hiding this comment

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

maybe replace with a test that tries to update the new index setting?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is indices.put_mapping test :) we have this elsewhere..

@kkrik-es kkrik-es merged commit a360757 into elastic:main Nov 1, 2024
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

The backport operation could not be completed due to the following error:

An unexpected error occurred when attempting to backport this PR.

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 115926

@kkrik-es
Copy link
Contributor Author

kkrik-es commented Nov 1, 2024

💚 All backports created successfully

Status Branch Result
8.x

Questions ?

Please refer to the Backport tool documentation

kkrik-es added a commit to kkrik-es/elasticsearch that referenced this pull request Nov 1, 2024
…tion tests (elastic#115926)

* Replace _source.mode with index.mapping.source.mode in integration tests

* fix tests

* revert 40_source_mode_setting.yml

(cherry picked from commit a360757)
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Nov 4, 2024
…tion tests (elastic#115926)

* Replace _source.mode with index.mapping.source.mode in integration tests

* fix tests

* revert 40_source_mode_setting.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged backport pending :StorageEngine/Mapping The storage related side of mappings Team:StorageEngine >test Issues or PRs that are addressing/adding tests v8.17.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the usage of the _source.mode mapping attribute from rest integration tests.

4 participants