-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Ado.net storage provider try to insert null for non nullable column #4351
Comments
probably before 2.0 in clusterOptions serviceId was set to default "00000000-0000-0000-0000-000000000000" now it's set to null, after configure serviceId to value that used to have everything is working. When serviceId is null ado.net storage is not working even when I set this column to nullable. |
serviceId's type may changes from guid to string |
I'll page @xiazen as she did a lot of hard work on this lately and might know if there's a good place for PR to go and check the ID really is set. Very good you had yourself unblocked. 👍 |
Yes, this is because we changed Beware also of http://dotnet.github.io/orleans/Documentation/2.0/Migration1.5.html#provider-configuration. |
@sergeybykov To make a bit progress, is this behavior consistent across all providers and what would be the path of least surprise (e.g. provide a default if one isn't set or something else)? |
One option is to add validation similar to #4160 to make sure service ID is configured. |
We have a validator now, so this particular issue should no longer occur |
After upgrade to 2.0 I got this error when using ado.net storage:
Exc level 0: System.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'ServiceId', table 'Orleans.dbo.Storage'; column does not allow nulls. INSERT fails.
The text was updated successfully, but these errors were encountered: