Skip to content

Commit cd1c003

Browse files
author
Robert Diers
committed
use group.id for unique key kafka consumer
1 parent de04781 commit cd1c003

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/org/opentesting/services/adapter/kafka/OpenTestingKafkaConsumer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ public class OpenTestingKafkaConsumer {
4444
@LogExecutionTime
4545
public void createConsumer(TestCaseServiceDTO service, Adapter adapter) {
4646

47-
String key = service.getConnectstring()+"#"+service.getCustom("topic").getValue()+"#"+service.getUsername();
47+
//shared between test cases
48+
String key = service.getConnectstring()+"#"+service.getCustom("topic").getValue()+"#"+service.getUsername()+"#"+service.getCustom("group.id").getValue();
4849
if (createdConsumers.containsKey(key)) {
4950
log.info("kafka consumer already exists: "+key);
5051
return;

0 commit comments

Comments
 (0)