-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix OldCoordinatorStateMigrationEventAdapter.Manifest #6176
Fix OldCoordinatorStateMigrationEventAdapter.Manifest #6176
Conversation
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.
Make internal
rather than public
@@ -233,58 +233,73 @@ public override object FromBinary(byte[] bytes, string manifest) | |||
/// This exception is thrown when the specified <paramref name="o"/> does not have an associated manifest. | |||
/// </exception> | |||
/// <returns>The manifest needed for the deserialization of the specified <paramref name="o" />.</returns> | |||
public static string GetManifest(object o) |
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.
I'd make this internal
so it's not part of the public API.
@@ -17,7 +19,10 @@ internal sealed class OldCoordinatorStateMigrationEventAdapter : IEventAdapter | |||
{ | |||
public string Manifest(object evt) | |||
{ | |||
return ""; | |||
if (evt is IPersistentRepresentation p) |
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.
LGTM
@Arkatufus I think you need to re-run API approvals |
Fixes #6159
Changes
ClusterShardingMessageSerializer.Manifest()
logic to static methodOldCoordinatorStateMigrationEventAdapter.Manifest()
forward the proper manifest to the journal