Could not take snapshot on followers because the position doesn't exist #7911
Labels
kind/bug
Categorizes an issue or PR as a bug
scope/broker
Marks an issue or PR to appear in the broker section of the changelog
severity/low
Marks a bug as having little to no noticeable impact for the user
version:1.3.12
version:8.1.0-alpha3
Marks an issue as being completely or in parts released in 8.1.0-alpha3
version:8.1.0
Marks an issue as being completely or in parts released in 8.1.0
Milestone
Describe the bug
Found the following error in a cluster
On further investigation, this happened because the follower received a new snapshot from the leader, and it reset the log. After that it did not receive any new events because of network issues. Then later the follower tries to take a snapshot, but since the log is empty it cannot find the index of the position. In this case this is not actually an error because nothing has been processed/exported yet. So ideally this error case should be handled differently on follower and leader.
The impact of this is nothing. The follower will eventually takes the snapshot when it starts receiving the new events.
Expected behavior
Log/Stacktrace
https://console.cloud.google.com/errors/CJu-z5WFm_fKVw?service=zeebe-broker&version=release-1-2-0&time=P7D&project=zeebe-io
Environment:
The text was updated successfully, but these errors were encountered: