jocko
jocko copied to clipboard
Write to CommitLog and Index does not in a transaction.
Thanks a lot for your project, it is very helpful for me to learn kafka. When I see the code, I find that, writeing a meesage to CommitLog and Index does not in a transaction, so how to ensure the consistency, or maybe I miss something? Thanks again. I am a Chinese student, so forgive my poor English.
index和log本来就不需要事务 就算log写成功了 index没写成功 不影响程序正常运行,因为index本来就是稀散索引