Skip to content
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

KAFKA-14580: Moving EndToEndLatency from core to tools module #13095

Merged
merged 16 commits into from
Mar 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions checkstyle/import-control.xml
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@
<subpackage name="tools">
<allow pkg="org.apache.kafka.common"/>
<allow pkg="org.apache.kafka.server.util" />
<allow pkg="org.apache.kafka.clients" />
<allow pkg="org.apache.kafka.clients.admin" />
<allow pkg="org.apache.kafka.clients.producer" />
<allow pkg="org.apache.kafka.clients.consumer" />
Expand Down
179 changes: 0 additions & 179 deletions core/src/main/scala/kafka/tools/EndToEndLatency.scala

This file was deleted.

2 changes: 1 addition & 1 deletion tests/kafkatest/benchmarks/core/benchmark_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def test_end_to_end_latency(self, compression_type="none", security_protocol="PL

Return aggregate latency statistics.

(Under the hood, this simply runs EndToEndLatency.scala)
(Under the hood, this simply runs EndToEndLatency.java)
"""
client_version = KafkaVersion(client_version)
broker_version = KafkaVersion(broker_version)
Expand Down
9 changes: 7 additions & 2 deletions tests/kafkatest/services/performance/end_to_end_latency.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from kafkatest.services.performance import PerformanceService
from kafkatest.services.security.security_config import SecurityConfig
from kafkatest.version import DEV_BRANCH
from kafkatest.version import get_version, V_3_4_0, DEV_BRANCH



Expand Down Expand Up @@ -50,6 +50,7 @@ def __init__(self, context, num_nodes, kafka, topic, num_records, compression_ty
root=EndToEndLatencyService.PERSISTENT_ROOT)
self.kafka = kafka
self.security_config = kafka.security_config.client_config()
self.version = ''

security_protocol = self.security_config.security_protocol

Expand All @@ -73,6 +74,7 @@ def __init__(self, context, num_nodes, kafka, topic, num_records, compression_ty

def start_cmd(self, node):
args = self.args.copy()
self.version = get_version(node)
args.update({
'bootstrap_servers': self.kafka.bootstrap_servers(self.security_config.security_protocol),
'config_file': EndToEndLatencyService.CONFIG_FILE,
Expand Down Expand Up @@ -124,4 +126,7 @@ def _worker(self, idx, node):
self.results[idx-1] = results

def java_class_name(self):
return "kafka.tools.EndToEndLatency"
if self.version <= V_3_4_0:
return "kafka.tools.EndToEndLatency"
else:
return "org.apache.kafka.tools.EndToEndLatency"
Loading