Regarding Kafka replication: What if the following scenario happens?<p>1. Leader replicates to followers<p>2. Followers get the messages and send ACK to leader<p>3. Leader gets the confirmation from followers, increments high watermark (HW) and replies client that messages is commited.<p>4. NOW: Leader fails before it could piggyback to followers that HW has been incremented.<p>5. The question is: Since potential leader is not aware of the fact that HW has been incremented, it becomes the new leader and truncates the log to old HW, which means we have lost an entry in the log that has been confirmed by previous leader.<p>As a result, client has been confirmed that the message has been successfully written, but it has been lost.
Are there any distributed logs which operate more as a framework than a service/platform?<p>Imagine Kafka but I am able to run my processors within the same JVM. You might even call them servlets for Kafka.