The GitHub Actions job "Build" on 
jackrabbit-oak.git/OAK-12249-lazy-provisioning has failed.
Run started by GitHub user bhabegger (triggered by fabriziofortino).

Head commit for run:
375295424d9ac08639f5d3a1c58323d0a21e35ba / Benjamin Habegger 
<[email protected]>
OAK-12249: lazy ES index provisioning — skip creation for empty reindex

When FT_OAK-12249 and FT_OAK-12248 are both enabled, ElasticIndexWriter
defers provisionIndex() from the constructor to the first updateDocument()
or deleteDocuments() call. A reindex that produces zero documents never
creates an Elasticsearch index or alias, eliminating the empty-index
problem described in OAK-12249.

Deployment order is enforced at runtime: isLazyProvisioningActive() returns
true only when both toggles are on. Enabling FT_OAK-12249 alone logs a WARN
and falls back to eager provisioning, preventing 404 errors on query paths
that lack graceful 404 handling.

ensureProvisioned() handles the incremental-write-after-empty-reindex case:
if an alias does not exist when the first document arrives, it creates a new
backing index with a fresh seed and points the alias at it.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

Report URL: https://github.com/apache/jackrabbit-oak/actions/runs/33635692509

With regards,
GitHub Actions via GitBox

Reply via email to