Repository navigation
Fix for MySql clustering script - #6097
oleggolovkovuss wants to merge 1 commit into
Conversation
The script is failing because the `OrleansQuery` table is not created before trying to insert something there. I think it was lost during "Split something" refactoring which this fix is copied from. I think all other clustering ADO.Net scripts have the same problem
|
Looks like the same problem exists for the persistence and reminders setup scripts as well. Also all of the MySQL scripts aren't working from the C# code (using |
|
@veikkoeeva Do you approve? |
|
The required part is at https://github.com/dotnet/orleans/tree/master/src/AdoNet/Shared and needs to be deployed first. The rationale for splitting was that not all tables and queries are needed in all cases so split like this to only those that are needed. Since this is the case, maybe this isn't the right fix but instruct people to deploy the required part first. Though it may be worth considering if the scripts should be merged into one. This would require a bit changes to testing too. Though if one does this, it's tempting to consider removing the |
|
@veikkoeeva oh, thanks, I see. I can't find any mention of |
|
@oleggolovkovuss The docs seem to be perpetually in process to be improved. :) You are right of course that this should be told better. There is one bigger sample at https://github.com/dotnet/orleans/tree/master/Samples/OneBoxDeployment if you are interested. It uses dacpac and so is not directly applicble to your case. You could though switch the connection strings to point to MySQL and switch the ADO.NET connector library. Related to the previous single script consideration, if there were a single script and it were available in known location, it could deploy it to database during setup. The tests do this, for instance. It has occurred to me to enhance the ADO.NET configuration surface so that there'd be an extension method like |
|
I submitted #6118 to add information about Shared/Main SQL scripts. |
|
Now that the docs were updated, should we close this? |
|
@sergeybykov Besides a small typo |
Thanks for pointing it out. I submitted #6124 to fix it. |
The script is failing because the
OrleansQuerytable is not created before trying to insert something there. I think it was lost during "Split something" refactoring which this fix is copied from. I think all other clustering ADO.Net scripts have the same problem