Skip to content

OAK-12125: throw IllegalStateException for property index missing propertyNames#2784

Open
tmvlad wants to merge 1 commit intoapache:trunkfrom
tmvlad:OAK-12125
Open

OAK-12125: throw IllegalStateException for property index missing propertyNames#2784
tmvlad wants to merge 1 commit intoapache:trunkfrom
tmvlad:OAK-12125

Conversation

@tmvlad
Copy link
Copy Markdown

@tmvlad tmvlad commented Mar 6, 2026

  • A property index definition with `type=property` but missing the required `propertyNames` property caused a `NullPointerException` in `PropertyIndexEditor` that was not caught by `IndexUpdate`, breaking the entire async indexing cycle for all indexes
  • Fix: add a null check in `PropertyIndexEditor` constructor and throw an `IllegalStateException` with a clear message; `IndexUpdate` already catches `IllegalStateException` to gracefully skip bad index definitions and continue

Links

…pertyNames

A property index definition without the required 'propertyNames' property
caused a NullPointerException in PropertyIndexEditor that was not caught by
IndexUpdate, breaking the entire async indexing cycle for all indexes.

Fix: add a null check in PropertyIndexEditor constructor and throw an
IllegalStateException with a clear message. IndexUpdate already catches
IllegalStateException to gracefully skip bad index definitions and continue.
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.

1 participant