You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fory.apache.org by GitBox <gi...@apache.org> on 2026/10/09 19:35:14 UTC
[GH] (fory/fix/enforce-registration-freeze): Workflow run "Fory CI" failed!
The GitHub Actions job "Fory CI" on fory.git/fix/enforce-registration-freeze has failed.
Run started by GitHub user Swatantra-66 (triggered by Swatantra-66).
Head commit for run:
5f5a2811dd7439e24e053e9889df7acf58af70fd / Swatantra Yadav <ma...@gmail.com>
[Go] Enforce registration freeze after first root serialize/deserialize operation (#4118)
After the first root serialization or deserialization operation on a Fory instance, registration is permanently frozen to prevent race conditions and invalidation of precomputed type descriptors and resolver state.
- Export ErrRegistrationFrozen sentinel error.
- Add frozen state and Freeze()/IsFrozen() methods to Fory and TypeResolver.
- Guard all public registration methods (RegisterStruct, RegisterUnion, RegisterEnum, RegisterExtension, and their ByName variants) against post-freeze calls.
- Enforce freeze on the start of all root serialization and deserialization entry points.
- Standardize threadsafe.Fory to return ErrRegistrationFrozen.
- Add comprehensive unit tests verifying freeze on success and failure paths, resolver state immutability, and Issue #4118 reproducer.
Closes #4118.
Signed-off-by: Swatantra Yadav <ma...@gmail.com>
Report URL: https://github.com/apache/fory/actions/runs/37979159402
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org