Why reliable collections is empty after micro-service upgrade and not invoking event OnDataLossAsync to restore state from external backup?
We have large scale system based on stateful services
<StatefulServiceType ServiceTypeName="UserServiceType" HasPersistedState="true" />
HasPersistedState is set as true, and data replicated across replicas, in case of VM failure data still valid and recovering with OnDataLossAsync but after upgrade collections is empty.
I have tried all upgrade options (remove, keep, auto ugrade) application, result the same - collections is empty.
For now we decided to replicate data to blob storage and recover it after service update which is not perfect solution, data recovery takes a few minutes and it makes some service unavailable/inconsistent for that time.
So we are looking for solution that allows to save data after upgrade.