Skip to content
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

v1.4.0-beta1 Release #97

Merged
merged 8 commits into from
Oct 30, 2019
Merged

v1.4.0-beta1 Release #97

merged 8 commits into from
Oct 30, 2019

Conversation

Aaronontheweb
Copy link
Member

1.4.0-beta1 October 30 2019

Beta release of Akka.Persistence.MongoDB which implements the new standardized Akka.Persistence serialization paradigm going forward. Has full backwards compatibility for reading events which were written in 1.3.[0-14] style serialization.

Aaronontheweb and others added 8 commits October 30, 2019 14:56
* added proper IActorRef serialization for MongoDb binary format

* added all Akka.Persistence.TCK.Serialization specs

* added v1.4.0 release notes

* close #72
* upgrade to Akka.NET v1.4.0-beta*

* added Unix-style line endings back for build.sh
Bumps MongoDB.Driver from 2.7.0 to 2.9.1.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* migrating to .NET Core 3.0 tests and build system

* Unix line endings
@Aaronontheweb Aaronontheweb merged commit dc881b8 into master Oct 30, 2019
{
Type type = null;

if (string.IsNullOrEmpty(entry.Manifest))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Aaronontheweb shouldn't this be IF NOT?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I think you're right


if (string.IsNullOrEmpty(entry.Manifest))
type = Type.GetType(entry.Manifest, throwOnError: true);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, an ELSE seems to be missing to retrieve the SerializerId. Otherwise we could wind up with no Type, SerializerId, and Manifest.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me take a look at what we did for the journal - most of the serialization, going forward, is handled internally by the PersistenceSnapshotSerializer: https://github.com/akkadotnet/akka.net/blob/dev/src/core/Akka.Persistence/Serialization/PersistenceSnapshotSerializer.cs

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the code I did for the journal - which was heavily backwards compatibility tested, is clean. The snapshot store's is not. I'll submit another PR and push a new beta.

Copy link
Member Author

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replied to @ismaelhamed's feedback

{
Type type = null;

if (string.IsNullOrEmpty(entry.Manifest))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I think you're right


if (string.IsNullOrEmpty(entry.Manifest))
type = Type.GetType(entry.Manifest, throwOnError: true);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me take a look at what we did for the journal - most of the serialization, going forward, is handled internally by the PersistenceSnapshotSerializer: https://github.com/akkadotnet/akka.net/blob/dev/src/core/Akka.Persistence/Serialization/PersistenceSnapshotSerializer.cs


if (string.IsNullOrEmpty(entry.Manifest))
type = Type.GetType(entry.Manifest, throwOnError: true);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the code I did for the journal - which was heavily backwards compatibility tested, is clean. The snapshot store's is not. I'll submit another PR and push a new beta.

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.

2 participants