Skip to content

Conversation

@lkts
Copy link
Contributor

@lkts lkts commented Feb 4, 2025

This is an accidental discovery from new block loader tests.

Randomized tests will eventually catch this but it is rare. It requires:

  1. Deep-ish object hierarchy
  2. No other synthetic field loaders being present in children of the last object. E.g. in this case if the field had doc values, it would not reproduce.

The problem is that ignoredValuesPresent signals when any children have ignored values. Existing this.ignoredValues != null check is weaker and only signals when immediate children have ignored values. This causes an erroneous decision that there are no ignored values in the hierarchy.

@lkts lkts added >bug auto-backport Automatically create backport pull requests when merged :StorageEngine/Mapping The storage related side of mappings v9.0.0 v8.17.2 v8.16.4 v8.18.1 v8.19.0 labels Feb 4, 2025
@lkts lkts requested review from kkrik-es and martijnvg February 4, 2025 22:03
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @lkts, I've created a changelog YAML for you.

Copy link
Contributor

@jordan-powers jordan-powers left a comment

Choose a reason for hiding this comment

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

Good catch, LGTM

@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.0
8.17
8.16
8.18
8.x

lkts added a commit to lkts/elasticsearch that referenced this pull request Feb 5, 2025
…lastic#121715)

* Fix synthetic source issue with deeply nested ignored source fields

* Update docs/changelog/121715.yaml
lkts added a commit to lkts/elasticsearch that referenced this pull request Feb 5, 2025
…lastic#121715)

* Fix synthetic source issue with deeply nested ignored source fields

* Update docs/changelog/121715.yaml
lkts added a commit to lkts/elasticsearch that referenced this pull request Feb 5, 2025
…lastic#121715)

* Fix synthetic source issue with deeply nested ignored source fields

* Update docs/changelog/121715.yaml
lkts added a commit to lkts/elasticsearch that referenced this pull request Feb 5, 2025
…lastic#121715)

* Fix synthetic source issue with deeply nested ignored source fields

* Update docs/changelog/121715.yaml
elasticsearchmachine pushed a commit that referenced this pull request Feb 5, 2025
…121715) (#121792)

* Fix synthetic source issue with deeply nested ignored source fields

* Update docs/changelog/121715.yaml
elasticsearchmachine pushed a commit that referenced this pull request Feb 5, 2025
…121715) (#121788)

* Fix synthetic source issue with deeply nested ignored source fields

* Update docs/changelog/121715.yaml
elasticsearchmachine pushed a commit that referenced this pull request Feb 5, 2025
…121715) (#121791)

* Fix synthetic source issue with deeply nested ignored source fields

* Update docs/changelog/121715.yaml
elasticsearchmachine pushed a commit that referenced this pull request Feb 5, 2025
…121715) (#121789)

* Fix synthetic source issue with deeply nested ignored source fields

* Update docs/changelog/121715.yaml
elasticsearchmachine pushed a commit that referenced this pull request Feb 5, 2025
…ields (#121715) (#121790)

* Fix synthetic source issue with deeply nested ignored source fields (#121715)

* Fix synthetic source issue with deeply nested ignored source fields

* Update docs/changelog/121715.yaml

* fix tests
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 >bug :StorageEngine/Mapping The storage related side of mappings Team:StorageEngine v8.16.4 v8.17.2 v8.18.1 v8.19.0 v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants