-
Notifications
You must be signed in to change notification settings - Fork 1.1k
swapped out Wire references for Hyperion package #2421
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
@@ -186,7 +186,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Akka.Serialization.Wire", " | |||
EndProject | |||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Akka.Serialization.TestKit", "contrib\serializers\Akka.Serialization.TestKit\Akka.Serialization.TestKit.csproj", "{CAA97041-CFC0-4081-9BD2-8B139E62A611}" | |||
EndProject | |||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Akka.Serialization.WireTests", "contrib\serializers\Akka.Serialization.WireTests\Akka.Serialization.WireTests.csproj", "{402FA351-D6C6-40FD-8868-F07156035919}" | |||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Akka.Serialization.Wire.Tests", "contrib\serializers\Akka.Serialization.WireTests\Akka.Serialization.Wire.Tests.csproj", "{402FA351-D6C6-40FD-8868-F07156035919}" |
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.
Renamed the project so it would get picked up by our FAKE script for serialization purposes.
@@ -165,7 +165,7 @@ private void WarnIfJsonIsDefaultSerializer() | |||
Serialization.FindSerializerForType(typeof (object)) is NewtonSoftJsonSerializer) | |||
{ | |||
Log.Warning($"NewtonSoftJsonSerializer has been detected as a default serializer. " + | |||
$"It will be obsoleted in Akka.NET starting from version 1.5 in the favor of Wire " + | |||
$"It will be obsoleted in Akka.NET starting from version 1.5 in the favor of Hyperion " + |
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.
Changed the message in our warning message, but we haven't updated the documentation that it points to currently.
Sounds good to me |
cc @Horusiath looks like we have an issue with the Akka.DistributedData bindings and the Hyperion serializer. Anything special that needs to be done with Hyperion or its serializer definition here? Take a look at the unit test failures. I can get them to fail locally as well. |
@Aaronontheweb I think this is a result of changes made between Wire v0.7.1 and v0.8.1 - existing Akka.Serialization.Wire references the first, while Hyperion is based on the second. It's one of the edge cases, we didn't have a test for - situation when immutable collection is referenced through interface (in this case |
@Horusiath thanks, we'll update the Hyperion package today |
Resolves #2435 as well |
Failures in ddata are caused by the problem I've solved in akkadotnet/Hyperion#13 . Not sure if that fix is not a part of the latest Hyperion version. |
@Horusiath yep, that's all in there. Newest version of Hyperion is going up on NuGet now. |
8cbcdb8
to
0da1bbc
Compare
Upgraded to 0.9.1 |
@Horusiath still have 7 spec failures on the DistributedData stuff, down from 9. http://petabridge-ci.cloudapp.net/viewLog.html?buildId=18997&buildTypeId=AkkaNet_AkkaNetLinuxMonoUnitTests&guest=1 |
@Aaronontheweb I've pulled your PR and tracked down the issue. The problem lies here. To deserialize enumerables (which ddata collections actually are), existing serializer was trying to find either
...which is not true in case of ddata i.e. |
Found the issue:
Looks like there's something going on in that assertion specifically that triggers a native error in the Mono runtime. Working on resolving some Mono build issues with Hyperion itself so I can get a better look. |
Trying this out with a Mono 4.6.1 build |
Looks like the Mono upgrade fixed the serialization issue. |
Is it ready to merge? |
Yep
…Sent from my iPhone
On Jan 14, 2017, at 1:05 AM, Bartosz Sypytkowski ***@***.***> wrote:
Is it ready to merge?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This PR swaps out the underlying Wire dependencies for Hyperion, in order to stop our users from getting GPL'd by upgrading to a new version of Wire.
I propose doing this across two releases
Any thoughts on the above?