Please let me know if my questions are not clear for you. I will rephrase it if required.
You mentioned that "Master node crashing for a specific key will lose the data if it hasn’t been replicated nor persisted. "
Consider following scenario.
Instead of Master node, if the replication node is crashed before applying the replica.
My undrstanding is that as the master node didnt crashed, the data will get persisted to disk.
What will happen to the replica data in following cases:
(i) If the crashed replication node is brought back before a failover is triggerred; will the data gets replicated? Till this time, will the replica data waits in the replication queue of Master node? If so, is there any threshold for how long the data can be preserved in the replication queue?
(ii) Consider before the replication node crashed, the replica data got transferred from the replication queue of Master. Just before it got applied to the replication node it crashed. In this scenario, there is no data in the replication queue to apply to replication node when it comes back. When the replication node is back and running(before failover), it will be part of the cluster. But how we will come to know that replica of the specific data is not present in the cluster? Will couchbase discovers automatically that replica for the master data is not present in the cluster?
Thanks and Regards