I have server
node and client
node. They do two way synchronization on a table and also both have sync_on_incoming_batch = 1
.
Let say, table structure is (id, name)
.
The scenario is:
server
insert data(1, 'a')
client
insert data(1, 'b')
server
send batch of(1, 'a')
toclient
client
send batch of(1, 'b')
toserver
- Now,
server
has data(1, 'b')
andclient
has data(1, 'a')
Questions are:
- After
server
received(1, 'b')
, whyserver
cannot route again the data toclient
? It's detected bynode_id = -1
insym_outgoing_batch
onserver
. Vice versa onclient
. - How to sync data based on most recent data? So in this case, the result is
(1, 'b')
in all node.