Repository navigation
Conversation
MetadataCache is a process-wide static holding one project's model version and custom field types. A host that runs LfMergeBridge for many projects in one process (LexBox's FwHeadless) validated one project's custom fields against another project's types, so Send/Receive failed validation and rolled back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Execute now resets before its argument checks, so a null action type exercises the reset without depending on Mercurial being installed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
myieye
marked this pull request as ready for review
November 19, 2026 14:11
Contributor
|
Oof, this is rough. This works if you only run these methods one at a time, if you run 1 and start another then the second wipes out the cache used by the first. It also occurs to me, if we're resetting a cache on each call then is it really a cache? |
Author
|
[Claude, autonomous] Closing in favor of Kevin's upcoming fix, which replaces the global MetadataCache with a per-project cache so parallel syncs in one process work. Until it lands, Lexbox clears the cache before each Send/Receive (sillsdev/languageforge-lexbox#3010). |
myieye
added a commit
to sillsdev/languageforge-lexbox
that referenced
this pull request
Nov 20, 2026
…ive (#3010) FLEx Bridge's MetadataCache is a process-wide static that keeps the first project's custom field types, so FwHeadless validated a project's custom fields against another project's types and Chorus rolled back the Send/Receive. Clear it by reflection until sillsdev/flexbridge#431 ships.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MetadataCacheis a process-wide static that keeps the first project's custom field types.Each
LfMergeBridgeentry point now starts with a fresh cache.Lexbox runs LfMerge for multiple projects in the same process (one at a time). So, they currently share custom fields.
E.g. project whose
LexEntry.Pluralis a single-WS String failed Send/Receive validation (Invalid MultiUnicode 'Plural' ... Has non-AUni child element) after another project definedPluralas MultiUnicode.Calls in one process must not overlap; they already couldn't safely share the cache.
This change is