Skip to content

Conversation

@yim-lee
Copy link
Member

@yim-lee yim-lee commented Jul 8, 2020

Motivation:
See #720

Modifications:
Add defaultValue to ORMap proto so it's included in serialization
and deserialized ORMap would have defaultValue set.

Add test to reproduce error and verify fix.

Result:
No fatal error when gossiping ORMap. Resolves #720

yim-lee added 2 commits July 8, 2020 09:40
Motivation:
See #720

Modifications:
Add `defaultValue` to `ORMap` proto so it's included in serialization
and deserialized `ORMap` would have `defaultValue` set.

Add test to reproduce error and verify fix.

Result:
No fatal error when gossiping `ORMap`. Resolves #720
@yim-lee
Copy link
Member Author

yim-lee commented Jul 8, 2020

This is #721 without nil fix or error logging tests.

@yim-lee
Copy link
Member Author

yim-lee commented Jul 8, 2020

Created new tickets for some old issues: #723, #724, #725

@yim-lee
Copy link
Member Author

yim-lee commented Jul 8, 2020

#614, #726, #727

The new test is passing in 5.2 with wrapper

@swift-server-bot test this please

@yim-lee
Copy link
Member Author

yim-lee commented Jul 8, 2020

#728, #712

@swift-server-bot test this please

self.value = value
}
}

Copy link
Member

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

Copy link
Member

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

@ktoso
Copy link
Member

ktoso commented Jul 9, 2020

Thank you @yim-lee!

Do we need to release or can you workaround with the same ValueHolder thing in your work?

@ktoso ktoso merged commit 810710c into apple:master Jul 9, 2020
@ktoso ktoso deleted the ormap-seri-fix-1 branch July 9, 2020 03:23
@yim-lee
Copy link
Member Author

yim-lee commented Jul 9, 2020

Do we need to release or can you workaround with the same ValueHolder thing in your work?

Yep, we need a release for the defaultValue change and I am adding ValueHolder thing to workaround the serialization issue. 🙇🏻‍♀️

@ktoso
Copy link
Member

ktoso commented Jul 9, 2020

Will cut one today then, no problem at all 👍

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.

CRDT.ORMap serialization failure during gossip

2 participants