Flows are missing after mastership change if 'backupEnabled' parameter of distributedflowrulestore is set to false.
steps to reproduce:
(1)started 3 node cluster and mininet topology of 5 switches.
(2)Initially, node 2 was the master for all my devices.
(3)set backupEnabled as false (cfg set org.onosproject.store.flow.impl.DistributedFlowRuleStore backupEnabled false)
(4)Install flows on all the devices and do 'flows' to make sure all the flows are added successfully on the devices.
(5)Do 'balance-masters' and make sure the devices are splitted across the nodes.
(6)Now do "flows" command, you can see flows whatever you have added will not be available.