-
Notifications
You must be signed in to change notification settings - Fork 553
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
write caching - raft - follow up fixes #17215
Conversation
/ci-repeat 5 |
/dt |
new failures in https://buildkite.com/redpanda/redpanda/builds/46522#018e5e04-1404-41b2-a5b6-987a58ab3512:
new failures in https://buildkite.com/redpanda/redpanda/builds/46535#018e5ef8-f2ac-44f6-ab65-712c14cdc1b5:
new failures in https://buildkite.com/redpanda/redpanda/builds/46535#018e5efc-eda8-402c-b84f-e5e1a628e3ed:
new failures in https://buildkite.com/redpanda/redpanda/builds/46535#018e5efc-eda7-40c0-9175-9a9f6d448725:
new failures in https://buildkite.com/redpanda/redpanda/builds/46535#018e5efc-edb1-4476-a60c-b136c7214250:
new failures in https://buildkite.com/redpanda/redpanda/builds/46609#018e652a-5f04-4c58-b7e3-d2c5999ce67e:
new failures in https://buildkite.com/redpanda/redpanda/builds/46609#018e652a-5eff-4431-b459-9cd5e3383395:
new failures in https://buildkite.com/redpanda/redpanda/builds/46609#018e652a-5efb-441b-9693-92742b312ef2:
new failures in https://buildkite.com/redpanda/redpanda/builds/46609#018e652a-5f08-4109-b463-01e42b9a206e:
new failures in https://buildkite.com/redpanda/redpanda/builds/46609#018e6552-8dae-4cc2-8012-d1af9a434817:
new failures in https://buildkite.com/redpanda/redpanda/builds/46609#018e6552-8da9-4d7d-b23a-59b3fd8ffb39:
new failures in https://buildkite.com/redpanda/redpanda/builds/46628#018e6766-1dc7-40a8-9ecb-da678bdf4c04:
new failures in https://buildkite.com/redpanda/redpanda/builds/46628#018e6777-e975-41b3-8660-8ce82db2be8d:
new failures in https://buildkite.com/redpanda/redpanda/builds/46741#018e7849-24e5-46ee-bb20-cea35735d606:
new failures in https://buildkite.com/redpanda/redpanda/builds/46753#018e78ce-723e-488c-92c1-76dc8a27a9ac:
new failures in https://buildkite.com/redpanda/redpanda/builds/46844#018e7da0-6931-4717-9d10-c68e2b1df898:
|
/ci-repeat 5 |
/dt |
ad6dc92
to
e897352
Compare
/dt |
/dt |
/dt |
src/v/raft/replication_monitor.cc
Outdated
// - There is new entry from a greater term replacing the | ||
// appended entries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment doesn't seem to reflect the code, i think it should say "different term"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is what I meant by "greater term", but renamed it to "different term" as suggested.
It does not have to return a future.
This utility is useful in cases where we one wants to run a lambda repeatedly until shutdown.
This is a raft internal utility that keeps track of all pending replication waiters. The waiter here is replicate_entries_stm that successfully appended something to a local log and waiting for the append to translate into a successful replication/truncation.
prior to this change, empty appends were silently passing with incorrect last offsets set. This is not possible via kafka path because we have checks that ensure that the records are non empty. Certain internal paths that use raft APIs directly can potentially try to replicate empty data, in which case appropriate error is thrown.
Summary of changes:
Backports Required
Release Notes