Skip to content

BUGFIX: Bypass async queue during bulk index builds#61

Open
paavo wants to merge 1 commit intoFlowpack:masterfrom
paavo:bugfix/bypass-queue-during-bulk-build
Open

BUGFIX: Bypass async queue during bulk index builds#61
paavo wants to merge 1 commit intoFlowpack:masterfrom
paavo:bugfix/bypass-queue-during-bulk-build

Conversation

@paavo
Copy link

@paavo paavo commented Feb 10, 2026

Problem

When enableLiveAsyncIndexing is true and nodeindex:build runs, nodes are queued as async jobs instead of being indexed directly. This means the build finishes and switches the alias before the queue is processed, resulting in an empty or incomplete index.

Fix

When indexNamePostfix is set (indicating a bulk build), bypass the async queue and call parent::indexNode() / parent::removeNode() directly. This ensures bulk builds index synchronously into the correct postfixed index.

Live async indexing (no postfix) remains unchanged.

Companion PR: Flowpack/Flowpack.ElasticSearch.ContentRepositoryAdaptor#425
Related: Flowpack/Flowpack.ElasticSearch.ContentRepositoryAdaptor#424

When indexNamePostfix is set (during nodeindex:build), index and remove
nodes directly via parent methods instead of queuing async jobs. This
ensures bulk builds index synchronously into the correct postfixed index.

Related: Flowpack/Flowpack.ElasticSearch.ContentRepositoryAdaptor#424
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

Comments