-
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
treewide: Reduce header dependencies #17002
treewide: Reduce header dependencies #17002
Conversation
Wow thanks for slogging through this 😍 |
35a5ac2
to
c6bb5ce
Compare
c6bb5ce
to
8016983
Compare
8016983
to
53478d3
Compare
thank you for that Ben 🙇🏼♂️ |
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.
Could you explain 58505b3 a little more? Is this used anywhere?
It just feels a little out of place compared to other changes.
Yes of course, this is the best commit! So cluster::partition includes a fair bit of code. By allowing the type to be incomplete, it allows us to not have to include the file until the
Now, users of |
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 LGTM, except that kafka_server_rpfixture
is failing for some reason.
@BenPope this is super cool. prolly worth a training chat on tuesday w/ the team |
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.
the lords work
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
53478d3
to
cf3f1d8
Compare
Changes in force push
|
enum class consistency_level { quorum_ack, leader_ack, no_ack }; | ||
|
||
struct replicate_options { | ||
explicit replicate_options(consistency_level l) | ||
: consistency(l) | ||
, timeout(std::nullopt) {} | ||
|
||
replicate_options(consistency_level l, std::chrono::milliseconds timeout) | ||
: consistency(l) | ||
, timeout(timeout) {} | ||
|
||
consistency_level consistency; | ||
std::optional<std::chrono::milliseconds> timeout; | ||
}; | ||
|
||
struct replicate_result { | ||
/// used by the kafka API to produce a kafka reply to produce request. | ||
/// see produce_request.cc | ||
model::offset last_offset; | ||
}; | ||
|
||
struct replicate_stages { | ||
replicate_stages(ss::future<>, ss::future<result<replicate_result>>); | ||
explicit replicate_stages(raft::errc); |
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.
yeh this is great
This focuses primarily on header files. The goal was to reduce the header dependencies between
raft
&cluster
and other libraries such askafka
.Another effort in another PR can focus on removing unused includes from .cc files.
Backports Required
Release Notes