I run the Service State State Service locally with 3 partitions and 3 replicas.
The application has a public static variable, and the value is initialized in the launch class.
I assumed that the scope of the static variable was on the replica. But it looks like the static scope of variables is shared between all instances in node.
T. I am referring to the static variable from the Primary Replica Partition 1, but it gives the value from the Secondary Replica section 3, where both copies are in the same node . The value of the static variable seems to be overwritten in some order inside the same node.
What is the scope of a static variable in a Stateful service fabric application?
source share