Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

进程崩溃,且快照没保存的情况 #24

Open
ablewolf opened this issue Mar 24, 2020 · 0 comments
Open

进程崩溃,且快照没保存的情况 #24

ablewolf opened this issue Mar 24, 2020 · 0 comments

Comments

@ablewolf
Copy link

Thanks for your reply and work. Let me elaborate a bit:
1、Do you ensure that when snapshotting, all the messages produced to kafka get acked?
2、AFAIK kafka producer doesn't guarantee message order, does that impact the following processes.

1,Yes, We use synchronous write to submit logs, writing 1000 logs at a time.When we save the snapshot, we will first check whether the snapshot.logSeq has been submitted to Kafka.
2,Only one partition is used for each log topic, so the sequence can be guaranteed.

Originally posted by @greensheng in #11 (comment)

我发现在orderBook中,seq要超过10000才回去保存一次快照,下次恢复的时候,快照很有可能和kafka对应不上,怎么办呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant