You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "olehborysevych (via GitHub)" <gi...@apache.org> on 2023/02/09 13:29:57 UTC

[GitHub] [beam] olehborysevych commented on a diff in pull request #25357: [Do not merge] Kafka emulator improvements

olehborysevych commented on code in PR #25357:
URL: https://github.com/apache/beam/pull/25357#discussion_r1101464266


##########
playground/backend/internal/emulators/emulator.go:
##########
@@ -49,49 +55,51 @@ func PrepareMockClustersAndGetPrepareParams(request *pb.RunCodeRequest) ([]Emula
 		datasetsByEmulatorTypeMap[dataset.Type] = datasets
 	}
 
-	var prepareParams = make(map[string]string)
 	var mockClusters = make([]EmulatorMockCluster, 0)
 	for emulatorType, datasets := range datasetsByEmulatorTypeMap {
 		switch emulatorType {
 		case pb.EmulatorType_EMULATOR_TYPE_KAFKA:
-			kafkaMockCluster, err := NewKafkaMockCluster()
+			kafkaMockCluster, err := NewKafkaMockCluster(configuration.KafkaEmulatorExecutablePath)
 			if err != nil {
 				logger.Errorf("failed to run a kafka mock cluster, %v", err)
-				return nil, nil, err
+				return nil, err
 			}
 			mockClusters = append(mockClusters, kafkaMockCluster)
-			datasetDTOs, err := toDatasetDTOs(datasets)

Review Comment:
   i think we can check this before creating mock cluster



-- 
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.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org