-
Notifications
You must be signed in to change notification settings - Fork 78
Fix CRDT.ORMap serialization/gossip bug #722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This is #721 without |
|
The new test is passing in 5.2 with wrapper @swift-server-bot test this please |
|
@swift-server-bot test this please |
| self.value = value | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah annoying workaround but way simpler than trying to hack it into working... Thanks @yim-lee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Foundation should be fixed in 5.2.5 i hope: swiftlang/swift-corelibs-foundation#2840
|
Thank you @yim-lee! Do we need to release or can you workaround with the same ValueHolder thing in your work? |
Yep, we need a release for the |
|
Will cut one today then, no problem at all 👍 |
Motivation:
See #720
Modifications:
Add
defaultValuetoORMapproto so it's included in serializationand deserialized
ORMapwould havedefaultValueset.Add test to reproduce error and verify fix.
Result:
No fatal error when gossiping
ORMap. Resolves #720