dianjifzm commented on PR #13045:
URL: https://github.com/apache/lucene/pull/13045#issuecomment-1948293102

   > Hi @dianjifzm! Can you give more context for what you're trying to do? I 
[passed the PR description through Google 
Translate](https://translate.google.com/?sl=auto&tl=en&text=%E5%BC%80%E6%94%BEcommitData%E7%9A%84%E4%BF%AE%E6%94%B9%EF%BC%8C%E5%8F%AF%E4%BB%A5%E8%87%AA%E5%AE%9A%E4%B9%89%E4%B8%BB%E4%BB%8E%E5%90%8C%E6%AD%A5%E7%9A%84%E5%AE%89%E5%85%A8%E6%9C%BA%E5%88%B6&op=translate),
 but it wasn't enough for me to understand how this is helpful.
   
   在业务开发过程中,有时为了故障恢复,有时是为了abtest,经常会发生replica切换primary的情况。
   目前primary和replica之间主要靠primaryGen做安全验证,这个机制并不可靠。
   只要primary的primaryGen大于replica的primaryGen,索引同步就会发生。
   而新的primary与replica的索引类型可能都不相同,数据也可能不一致。
   为了避免此类问题的发生,就需要自定义的主从验证机制,而这个机制需要放到commitData中。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to