lujiajing1126 commented on a change in pull request #5510:
URL: https://github.com/apache/skywalking/pull/5510#discussion_r490306649
##########
File path:
test/plugin/scenarios/spring-kafka-2.3.x-scenario/src/main/java/test/org/apache/skywalking/apm/testcase/spring/kafka/controller/CaseController.java
##########
@@ -82,6 +85,21 @@ private void setUpProvider() {
}
}
+ private void setUpAnotherProvider() {
+ Map<String, Object> props = new HashMap<>();
+ // use list type here
+ props.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG,
Arrays.asList(bootstrapServers.split(",")));
+ props.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG,
StringSerializer.class);
+ props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG,
StringSerializer.class);
+ kafkaTemplate2 = new KafkaTemplate<String, String>(new
DefaultKafkaProducerFactory<>(props));
+ try {
+ kafkaTemplate2.send(topicName, "key", "ping").get();
+ kafkaTemplate2.flush();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
Review comment:
I have added more test cases for this scenario. Pls have a check since
I am not familiar with this part.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]