Orleans.Redis icon indicating copy to clipboard operation
Orleans.Redis copied to clipboard

FLUSHALL required between running different code

Open dodyg opened this issue 3 years ago • 1 comments

I am working Orleans samples here https://github.com/dodyg/practical-aspnetcore/tree/net6.0/projects/orleans that uses this AddRedisGrainStorage. The thing is I have to FLUSHALL in redis-cli between samples because serializations errors. How can I prevent this from happening? Is there any specific key or namespace I can add?

dodyg avatar Dec 17 '21 11:12 dodyg

What exact serialization errors do you receive? I assume that these are JSON serialization errors. May be your different projects use same grain interface & grain class names (including namespaces), but they have different state types in different projects. That could lead to errors if grains with same keys are reused within samples.

f-i-x-7 avatar Jan 14 '22 20:01 f-i-x-7