← 输入框|github.com|刷新
Skip to content

Run an elected caller's own factory instead of sharing a run in flight - #49

Merged
aisk merged 1 commit into
multiplex-sync-batch-readsfrom
factory-reelect-own-run
Oct 6, 2026
Merged

aisk merged 1 commit into
multiplex-sync-batch-readsfrom
factory-reelect-own-run

Conversation

@aisk

@aisk aisk commented Oct 6, 2026

Copy link
Copy Markdown
Owner

A caller that won a fresh lease while another factory run for the same key was in flight in the same client used to share that run's value and write it back through its own lease. If the key had been deleted in between, this put a value computed before the delete back into the cache. An elected caller now always runs its own factory, and only callers the server did not elect share a run in flight.

@aisk
aisk added this pull request to stack #50 October 6, 2026 17:58
@aisk
aisk force-pushed the factory-reelect-own-run branch from 8ece148 to 1e2ad46 Compare October 6, 2026 17:58
@aisk
aisk merged commit ec808c8 into master Oct 6, 2026
5 checks passed
@aisk
aisk deleted the factory-reelect-own-run branch October 6, 2026 18:00
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