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

Fix createProducer PULSAR is invalid #388

Closed
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
2 changes: 1 addition & 1 deletion driver-kop/pulsar_to_kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# limitations under the License.
#

name: Kafka producer and Pulsar consumer
name: Pulsar producer and Kafka consumer
driverClass: io.openmessaging.benchmark.driver.kop.KopBenchmarkDriver

producerType: pulsar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public CompletableFuture<BenchmarkProducer> createProducer(String topic) {
new KafkaBenchmarkProducer(new KafkaProducer<>(producerProperties), topic);
producers.add(producer);
return CompletableFuture.completedFuture(producer);
} else if (config.consumerType.equals(ClientType.PULSAR)) {
} else if (config.producerType.equals(ClientType.PULSAR)) {
return producerBuilder
.clone()
.topic(topic)
Expand Down
Loading