Hi Bernardo,
We have a small observation on using Peer To Peer topology at-least on android device.
If I have 2 nodes and I use below set of connection strings on nodes as:
Node-1:
"file:NotesDB.db?node=primary&total_primary_nodes=2&bind=tcp://0.0.0.0:1234";
Node-2:
"file:NotesDB.db?node=primary&total_primary_nodes=2&bind=tcp://0.0.0.0:1234&connect=tcp://192.168.1.119:1234";
//Where 192.168.1.119 is the IP address of the first node
If I run the device (Node-1) without running the Node-2, then on Node-1 checking the "pragma sync_status" tells me that db is not ready (db_is_ready is false).
Status details which I get is:
{
"use_litesync": true,
"node_type": "primary",
"node_id": 0,
"db_is_ready": false,
"sync_down_state": "unknown",
"sync_up_state": "unknown",
"log_storage": "keep",
"peers": []
}
This could be the real life scenario where device-1 is active however device-2 is not and in this use case if device-1 shows that db is not ready then should we continue to perform database operations on device-1 without waiting for other peers to become active first?