{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/orleans/issues/1872","repository_url":"https://api.github.com/repos/dotnet/orleans","labels_url":"https://api.github.com/repos/dotnet/orleans/issues/1872/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/orleans/issues/1872/comments","events_url":"https://api.github.com/repos/dotnet/orleans/issues/1872/events","html_url":"https://github.com/dotnet/orleans/issues/1872","id":162222612,"number":1872,"title":"Failure to read grain state after upgrading from version 1.1.3 to 1.2.2","user":{"login":"Eldar1205","id":5265591,"avatar_url":"https://avatars.githubusercontent.com/u/5265591?v=3","gravatar_id":"","url":"https://api.github.com/users/Eldar1205","html_url":"https://github.com/Eldar1205","followers_url":"https://api.github.com/users/Eldar1205/followers","following_url":"https://api.github.com/users/Eldar1205/following{/other_user}","gists_url":"https://api.github.com/users/Eldar1205/gists{/gist_id}","starred_url":"https://api.github.com/users/Eldar1205/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eldar1205/subscriptions","organizations_url":"https://api.github.com/users/Eldar1205/orgs","repos_url":"https://api.github.com/users/Eldar1205/repos","events_url":"https://api.github.com/users/Eldar1205/events{/privacy}","received_events_url":"https://api.github.com/users/Eldar1205/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/orleans/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-24T20:14:30Z","updated_at":"2016-06-25T12:28:43Z","closed_at":null,"body":"As part of the upgrade to version 1.2.2, I made my grain state class no longer inherit GrainState, as it is obsolete, but then I started noticing read state exceptions. I use the Azure Storage table provider, and grain state is serialized using default serializer. I tried reverting to keep using GrainState as base class for now, but it didn't help, still getting the exception. Please help me understand how should I make the upgrade. Here is an example trace with the exception:\r\n\r\n\"[2016-06-24 20:04:37.827 GMT    19\tWARNING\t101032\tDispatcher\t100.107.176.34:30000]\tForwarding failed: tried to forward message NewPlacement Request S100.107.124.46:30000:204492685ReminderService@S00000010->S100.107.176.34:30000:204494632*grn/8E20F1E5/00000000+asec-7509b1da-fecc-4774-9b3c-dc4ae69803e8-ns::asec-4d43fdf3-2a96-4871-b107-9d3906d1d04c-eh::0@fb890ea5 #8896[ForwardCount=2]: global::Orleans.IRemindable:ReceiveReminder() for 2 times after Failed SetupActivationState to invalid activation. Rejecting now.\t\r\nExc level 0: System.InvalidCastException: Unable to cast object of type 'System.Collections.Generic.Dictionary`2[System.String,System.Object]' to type 'Microsoft.Azure.Security.RomeDataStorage.Orleans.Server.ManagedEventHubs.ManagedEventHubConsumerState'.\r\n   at Orleans.GrainState`1.Orleans.IGrainState.set_State(Object value)\r\n   at Orleans.Storage.AzureTableStorage.<ReadStateAsync>d__31.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Orleans.Runtime.Scheduler.SchedulerExtensions.<>c__DisplayClass1_0.<<QueueTask>b__0>d.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Orleans.Runtime.Catalog.<SetupActivationState>d__54.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Orleans.Runtime.Catalog.<InitActivation>d__51.MoveNext()\""},"comment":{"url":"https://api.github.com/repos/dotnet/orleans/issues/comments/228537807","html_url":"https://github.com/dotnet/orleans/issues/1872#issuecomment-228537807","issue_url":"https://api.github.com/repos/dotnet/orleans/issues/1872","id":228537807,"user":{"login":"Eldar1205","id":5265591,"avatar_url":"https://avatars.githubusercontent.com/u/5265591?v=3","gravatar_id":"","url":"https://api.github.com/users/Eldar1205","html_url":"https://github.com/Eldar1205","followers_url":"https://api.github.com/users/Eldar1205/followers","following_url":"https://api.github.com/users/Eldar1205/following{/other_user}","gists_url":"https://api.github.com/users/Eldar1205/gists{/gist_id}","starred_url":"https://api.github.com/users/Eldar1205/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eldar1205/subscriptions","organizations_url":"https://api.github.com/users/Eldar1205/orgs","repos_url":"https://api.github.com/users/Eldar1205/repos","events_url":"https://api.github.com/users/Eldar1205/events{/privacy}","received_events_url":"https://api.github.com/users/Eldar1205/received_events","type":"User","site_admin":false},"created_at":"2016-06-25T12:28:42Z","updated_at":"2016-06-25T12:28:42Z","body":"Until a release is made this solution can be posted as an external\nmitigation, only the type of underline storage provider needs to be\nmodified depending on kind of storage used by developers. Would be nice if\nOrleans supported closed generic bootstrap providers registrations.\n\n2016-06-25 15:18 GMT+03:00 Shay Hazor <notifications@github.com>:\n\n> @Eldar1205 <https://github.com/Eldar1205>, thanks for taking the time to\n> offer a solution. If you can provide a PR, that would be best. As it is a\n> bug that blocks most upgrades, it must result in a new Orleans release.\n> @sergeybykov <https://github.com/sergeybykov>, do you agree?\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/dotnet/orleans/issues/1872#issuecomment-228537426>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe/AFBYtxxXiMZWT3lxL-ly0lzwJcwbmKyxks5qPRx7gaJpZM4I-Fv4>\n> .\n>\n"}}
{"actor":{"display_login":"Eldar1205"}}