Skip to content

make MemoryDatabase.rebuildIndex public#1909

Merged
brharrington merged 1 commit into
Netflix:mainfrom
brharrington:expose-memorydb-rebuild-index
Jun 4, 2026
Merged

make MemoryDatabase.rebuildIndex public#1909
brharrington merged 1 commit into
Netflix:mainfrom
brharrington:expose-memorydb-rebuild-index

Conversation

@brharrington

Copy link
Copy Markdown
Contributor

Deriving index membership from the data map (#1906) stopped update() from feeding the index pending queue, so the synchronous data->index sync now happens only in rebuildIndex(). Callers that write via update() and previously forced a sync with index.rebuildIndex() no longer see their data: the no-arg BatchUpdateTagIndex.rebuildIndex() just drains an empty pending queue.

Expose the unthrottled MemoryDatabase.rebuildIndex() so callers can force a synchronous rebuild after a bulk load or in tests. rebuild() remains the throttled variant used by the background thread.

Deriving index membership from the data map (Netflix#1906) stopped update()
from feeding the index pending queue, so the synchronous data->index
sync now happens only in rebuildIndex(). Callers that write via
update() and previously forced a sync with index.rebuildIndex() no
longer see their data: the no-arg BatchUpdateTagIndex.rebuildIndex()
just drains an empty pending queue.

Expose the unthrottled MemoryDatabase.rebuildIndex() so callers can
force a synchronous rebuild after a bulk load or in tests. rebuild()
remains the throttled variant used by the background thread.
@brharrington brharrington added this to the 1.9.0 milestone Jun 4, 2026
@brharrington brharrington merged commit 4d9dd55 into Netflix:main Jun 4, 2026
5 checks passed
@brharrington brharrington deleted the expose-memorydb-rebuild-index branch June 4, 2026 20:35
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