Follower doesn't send response back if append fails #8612
Labels
area/performance
Marks an issue as performance related
component/raft
component/zeebe
Related to the Zeebe component/team
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
version:8.7.0-alpha1
Label that represents issues released on verions 8.7.0-alpha1
Describe the bug
Taking a look at the code I saw that if the follower is failing to append it just flush the appended records and stops with the appending
https://github.com/camunda-cloud/zeebe/blob/develop/atomix/cluster/src/main/java/io/atomix/raft/roles/PassiveRole.java#L548-L552
But not error or anything is returned to the leader, which means it has to timeout on the leader first and then the append is resend. This produces unnecessary delay.
To Reproduce
Cause a failure on append on the follower side.
Expected behavior
The follower sends an error back and the leader reacts appropriate with that.
Environment:
The text was updated successfully, but these errors were encountered: