The GitHub Actions job "Build" on jackrabbit-oak.git/trunk has failed.
Run started by GitHub user fabriziofortino (triggered by fabriziofortino).

Head commit for run:
82208b87ca312c3d4831474f9c0022952c398b9c / Benjamin Habegger 
<[email protected]>
OAK-12249: lazy ES index provisioning — skip creation for empty reindex (#3085)

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/33519138579

With regards,
GitHub Actions via GitBox

Reply via email to