Skip to content

Introduce MAPPING_AUTO_UPDATE merge reason#104769

Merged
elasticsearchmachine merged 4 commits intoelastic:mainfrom
felixbarny:merge-reason-auto-update
Jan 26, 2024
Merged

Introduce MAPPING_AUTO_UPDATE merge reason#104769
elasticsearchmachine merged 4 commits intoelastic:mainfrom
felixbarny:merge-reason-auto-update

Conversation

@felixbarny
Copy link
Copy Markdown
Member

This is in preparation of #96235. At the moment, there's no difference between MAPPING_AUTO_UPDATE and MAPPING_AUTO_UPDATE_PREFLIGHT.

After the other PR is merged, when the merge reason is auto-update and if ignore_dynamic_beyond_limit is set, the merge process will only add dynamically mapped fields until the field limit is reached and ignores additional ones.

This is in preparation of elastic#96235.
At the moment, there's no difference between MAPPING_AUTO_UPDATE and MAPPING_AUTO_UPDATE_PREFLIGHT.

After the other PR is merged, when the merge reason is auto-update and if ignore_dynamic_beyond_limit is set,
the merge process will only add dynamically mapped fields until the field limit is reached and ignores additional ones.
@elasticsearchmachine elasticsearchmachine added v8.13.0 needs:triage Requires assignment of a team area label external-contributor Pull request authored by a developer outside the Elasticsearch team labels Jan 25, 2024
@felixbarny felixbarny added >non-issue :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. and removed needs:triage Requires assignment of a team area label labels Jan 25, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Meta label for distributed team. label Jan 25, 2024
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Copy Markdown
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

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

Looks good. I found a few additional potential changes.

Also, I would like to have the new constant used more in tests, for instance randomly in MapperServiceTests and DocumentMapperTests (I think all tests there would pass with both so choosing a random one would make sense to me).

Copy link
Copy Markdown
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

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

LGTM.

@felixbarny felixbarny added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jan 26, 2024
@elasticsearchmachine elasticsearchmachine merged commit 3170f09 into elastic:main Jan 26, 2024
@felixbarny felixbarny deleted the merge-reason-auto-update branch January 26, 2024 13:31
elasticsearchmachine pushed a commit that referenced this pull request Feb 2, 2024
)

Adds a new `index.mapping.total_fields.ignore_dynamic_beyond_limit`
index setting.

When set to `true`, new fields are added to the mapping as long as the
field limit (`index.mapping.total_fields.limit`) is not exceeded. Fields
that would exceed the limit are not added to the mapping, similar to
`dynamic: false`.  Ignored fields are added to the `_ignored` metadata
field.

Relates to #89911

To make this easier to review, this is split into the following PRs: -
[x] #102915 - [x]
#102936 - [x]
#104769

Related but not a prerequisite: - [ ]
#102885
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. external-contributor Pull request authored by a developer outside the Elasticsearch team >non-issue Team:Distributed Meta label for distributed team. v8.13.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants