Skip to content

Commit

Permalink
Merge pull request #18085 from dotnwat/net-module-new-style
Browse files Browse the repository at this point in the history
[CORE-2054] Convert net module to new style
  • Loading branch information
dotnwat authored Apr 26, 2024
2 parents 9ee6d8c + 3376178 commit 4182b85
Show file tree
Hide file tree
Showing 61 changed files with 47 additions and 46 deletions.
2 changes: 1 addition & 1 deletion src/v/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ add_subdirectory(io)
add_subdirectory(ssx)
add_subdirectory(wasm)
add_subdirectory(transform)
add_subdirectory(net)

# libraries
add_subdirectory(test_utils)
add_subdirectory(finjector)
add_subdirectory(utils)
add_subdirectory(net)
add_subdirectory(rpc)
add_subdirectory(metrics)
add_subdirectory(model)
Expand Down
2 changes: 1 addition & 1 deletion src/v/archival/tests/ntp_archiver_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "model/metadata.h"
#include "model/record_batch_types.h"
#include "net/types.h"
#include "net/unresolved_address.h"
#include "ssx/sformat.h"
#include "storage/disk_log_impl.h"
#include "storage/parser.h"
Expand All @@ -37,6 +36,7 @@
#include "test_utils/fixture.h"
#include "test_utils/scoped_config.h"
#include "utils/retry_chain_node.h"
#include "utils/unresolved_address.h"

#include <seastar/core/future-util.hh>
#include <seastar/core/sstring.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/v/cloud_storage_clients/tests/s3_client_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
#include "hashing/secure.h"
#include "net/dns.h"
#include "net/types.h"
#include "net/unresolved_address.h"
#include "test_utils/fixture.h"
#include "utils/base64.h"
#include "utils/unresolved_address.h"

#include <seastar/core/future.hh>
#include <seastar/core/iostream.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/v/cluster/metadata_dissemination_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
#include "model/metadata.h"
#include "model/namespace.h"
#include "model/timeout_clock.h"
#include "net/unresolved_address.h"
#include "rpc/connection_cache.h"
#include "rpc/types.h"
#include "utils/retry.h"
#include "utils/unresolved_address.h"

#include <seastar/core/abort_source.hh>
#include <seastar/core/chunked_fifo.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/v/cluster/metadata_dissemination_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
#include "features/fwd.h"
#include "model/fundamental.h"
#include "model/metadata.h"
#include "net/unresolved_address.h"
#include "raft/fwd.h"
#include "rpc/fwd.h"
#include "utils/mutex.h"
#include "utils/retry.h"
#include "utils/unresolved_address.h"

#include <seastar/core/abort_source.hh>
#include <seastar/core/sharded.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/v/cluster/metrics_reporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
#include "model/timeout_clock.h"
#include "net/tls.h"
#include "net/tls_certificate_probe.h"
#include "net/unresolved_address.h"
#include "reflection/adl.h"
#include "rpc/types.h"
#include "security/role_store.h"
#include "ssx/sformat.h"
#include "utils/unresolved_address.h"

#include <seastar/core/abort_source.hh>
#include <seastar/core/coroutine.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/v/cluster/tests/cluster_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#include "config/configuration.h"
#include "features/feature_table_snapshot.h"
#include "model/metadata.h"
#include "net/unresolved_address.h"
#include "test_utils/fixture.h"
#include "utils/unresolved_address.h"

using namespace std::chrono_literals; // NOLINT

Expand Down
2 changes: 1 addition & 1 deletion src/v/cluster/tests/cluster_utils_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
#include "cluster/members_table.h"
#include "cluster/types.h"
#include "model/metadata.h"
#include "net/unresolved_address.h"
#include "storage/tests/kvstore_fixture.h"
#include "test_utils/fixture.h"
#include "utils/prefix_logger.h"
#include "utils/unresolved_address.h"

#include <seastar/core/shared_ptr.hh>
#include <seastar/net/inet_address.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/v/cluster/tests/configuration_change_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#include "cluster/types.h"
#include "config/configuration.h"
#include "model/metadata.h"
#include "net/unresolved_address.h"
#include "test_utils/fixture.h"
#include "utils/unresolved_address.h"

#include <seastar/core/future-util.hh>
#include <seastar/core/sstring.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/v/cluster/tests/controller_state_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
#include "config/configuration.h"
#include "model/metadata.h"
#include "model/timeout_clock.h"
#include "net/unresolved_address.h"
#include "test_utils/async.h"
#include "test_utils/fixture.h"
#include "utils/unresolved_address.h"

#include <seastar/core/future-util.hh>
#include <seastar/core/sstring.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/v/cluster/tests/metadata_dissemination_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
#include "model/fundamental.h"
#include "model/metadata.h"
#include "model/timeout_clock.h"
#include "net/unresolved_address.h"
#include "test_utils/async.h"
#include "test_utils/fixture.h"
#include "utils/unresolved_address.h"

#include <seastar/util/defer.hh>

Expand Down
2 changes: 1 addition & 1 deletion src/v/cluster/tests/partition_allocator_fixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
#include "config/mock_property.h"
#include "model/fundamental.h"
#include "model/metadata.h"
#include "net/unresolved_address.h"
#include "random/fast_prng.h"
#include "random/generators.h"
#include "utils/unresolved_address.h"

#include <seastar/core/chunked_fifo.hh>

Expand Down
2 changes: 1 addition & 1 deletion src/v/compat/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
#include "json/document.h"
#include "json/json.h"
#include "model/fundamental.h"
#include "net/unresolved_address.h"
#include "security/acl.h"
#include "utils/base64.h"
#include "utils/unresolved_address.h"

#include <seastar/net/inet_address.hh>

Expand Down
2 changes: 1 addition & 1 deletion src/v/config/broker_authn_endpoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "json/_include_first.h"
#include "json/stringbuffer.h"
#include "json/writer.h"
#include "net/unresolved_address.h"
#include "utils/unresolved_address.h"

#include <seastar/core/sstring.hh>

Expand Down
2 changes: 1 addition & 1 deletion src/v/config/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#include "model/fundamental.h"
#include "model/metadata.h"
#include "model/timestamp.h"
#include "net/unresolved_address.h"
#include "pandaproxy/schema_registry/schema_id_validation.h"
#include "utils/unresolved_address.h"

#include <seastar/core/sstring.hh>
#include <seastar/net/inet_address.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/v/config/node_config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "node_config.h"

#include "config/configuration.h"
#include "net/unresolved_address.h"
#include "utils/unresolved_address.h"

namespace config {

Expand Down
2 changes: 1 addition & 1 deletion src/v/config/rest_authn_endpoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "json/_include_first.h"
#include "json/stringbuffer.h"
#include "json/writer.h"
#include "net/unresolved_address.h"
#include "utils/unresolved_address.h"

#include <seastar/core/sstring.hh>

Expand Down
2 changes: 1 addition & 1 deletion src/v/config/seed_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "base/seastarx.h"
#include "config/convert.h"
#include "net/unresolved_address.h"
#include "utils/unresolved_address.h"

#include <model/metadata.h>
#include <yaml-cpp/yaml.h>
Expand Down
2 changes: 1 addition & 1 deletion src/v/config/tests/seed_server_property_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "config/node_config.h"
#include "config/seed_server.h"
#include "net/unresolved_address.h"
#include "utils/unresolved_address.h"

#include <seastar/testing/thread_test_case.hh>

Expand Down
2 changes: 1 addition & 1 deletion src/v/config/validators.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#include "config/configuration.h"
#include "model/namespace.h"
#include "model/validation.h"
#include "net/inet_address_wrapper.h"
#include "ssx/sformat.h"
#include "utils/inet_address_wrapper.h"

#include <absl/algorithm/container.h>
#include <absl/container/flat_hash_set.h>
Expand Down
2 changes: 1 addition & 1 deletion src/v/http/include/http/tests/http_imposter.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "base/seastarx.h"
#include "base/vassert.h"
#include "http/tests/registered_urls.h"
#include "net/unresolved_address.h"
#include "utils/unresolved_address.h"

#include <seastar/core/sstring.hh>
#include <seastar/http/httpd.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/v/json/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#include "json/stream.h"
#include "json/stringbuffer.h"
#include "json/writer.h"
#include "net/unresolved_address.h"
#include "utils/named_type.h"
#include "utils/unresolved_address.h"

#include <seastar/core/circular_buffer.hh>

Expand Down
2 changes: 1 addition & 1 deletion src/v/kafka/client/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
#include "model/fundamental.h"
#include "model/metadata.h"
#include "model/timeout_clock.h"
#include "net/unresolved_address.h"
#include "random/generators.h"
#include "ssx/future-util.h"
#include "utils/unresolved_address.h"

#include <seastar/core/coroutine.hh>
#include <seastar/core/future.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/v/kafka/client/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
#include "kafka/protocol/fetch.h"
#include "kafka/protocol/list_offsets.h"
#include "kafka/types.h"
#include "net/unresolved_address.h"
#include "ssx/semaphore.h"
#include "utils/retry.h"
#include "utils/unresolved_address.h"

#include <seastar/core/condition-variable.hh>

Expand Down
2 changes: 1 addition & 1 deletion src/v/kafka/client/test/consumer_group.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
#include "kafka/types.h"
#include "model/fundamental.h"
#include "model/metadata.h"
#include "net/unresolved_address.h"
#include "redpanda/tests/fixture.h"
#include "ssx/future-util.h"
#include "utils/unresolved_address.h"

#include <seastar/core/loop.hh>
#include <seastar/core/sleep.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/v/kafka/client/test/fetch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#include "kafka/types.h"
#include "model/fundamental.h"
#include "model/metadata.h"
#include "net/unresolved_address.h"
#include "redpanda/tests/fixture.h"
#include "utils/unresolved_address.h"

#include <boost/test/tools/old/interface.hpp>

Expand Down
2 changes: 1 addition & 1 deletion src/v/kafka/client/test/produce.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "kafka/protocol/metadata.h"
#include "model/fundamental.h"
#include "model/metadata.h"
#include "net/unresolved_address.h"
#include "utils/unresolved_address.h"

#include <chrono>

Expand Down
2 changes: 1 addition & 1 deletion src/v/kafka/client/test/reconnect.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#include "kafka/protocol/produce.h"
#include "model/fundamental.h"
#include "model/metadata.h"
#include "net/unresolved_address.h"
#include "pandaproxy/test/utils.h"
#include "utils/unresolved_address.h"

#include <seastar/util/defer.hh>

Expand Down
1 change: 1 addition & 0 deletions src/v/migrations/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ v_cc_library(
v::model
v::config
v::compression
v::net
)
2 changes: 1 addition & 1 deletion src/v/model/metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#include "base/seastarx.h"
#include "base/units.h"
#include "model/fundamental.h"
#include "net/unresolved_address.h"
#include "serde/envelope.h"
#include "utils/named_type.h"
#include "utils/unresolved_address.h"
#include "utils/xid.h"

#include <seastar/core/sstring.hh>
Expand Down
2 changes: 1 addition & 1 deletion src/v/model/tests/randoms.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
#include "model/metadata.h"
#include "model/record.h"
#include "model/timestamp.h"
#include "net/tests/randoms.h"
#include "pandaproxy/schema_registry/subject_name_strategy.h"
#include "random/generators.h"
#include "test_utils/randoms.h"
#include "utils/tests/randoms.h"

namespace model {
inline model::topic_namespace random_topic_namespace() {
Expand Down
2 changes: 1 addition & 1 deletion src/v/net/conn_quota.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0

#include "conn_quota.h"
#include "net/conn_quota.h"

#include "base/vlog.h"
#include "config/configuration.h"
Expand Down
2 changes: 1 addition & 1 deletion src/v/net/dns.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
*/
#include "net/dns.h"

#include "net/unresolved_address.h"
#include "utils/mutex.h"
#include "utils/unresolved_address.h"

#include <seastar/core/coroutine.hh>
#include <seastar/net/dns.hh>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
#include "base/vassert.h"
#include "config/validators.h"
#include "net/connection_rate_counter.h"
#include "net/inet_address_wrapper.h"
#include "net/server_probe.h"
#include "seastar/core/coroutine.hh"
#include "ssx/future-util.h"
#include "utils/inet_address_wrapper.h"

#include <seastar/core/abort_source.hh>
#include <seastar/core/gate.hh>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/v/net/dns.h → src/v/net/include/net/dns.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* by the Apache License, Version 2.0
*/
#pragma once
#include "net/unresolved_address.h"
#include "utils/unresolved_address.h"

namespace net {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "net/batched_output_stream.h"
#include "net/client_probe.h"
#include "net/types.h"
#include "net/unresolved_address.h"
#include "utils/unresolved_address.h"

#include <seastar/core/gate.hh>
#include <seastar/core/iostream.hh>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/v/net/tests/dns.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "net/dns.h"

#include "net/unresolved_address.h"
#include "utils/unresolved_address.h"

#include <seastar/testing/thread_test_case.hh>

Expand Down
Loading

0 comments on commit 4182b85

Please sign in to comment.