olehborysevych commented on code in PR #25357:
URL: https://github.com/apache/beam/pull/25357#discussion_r1101467933
##########
playground/backend/internal/emulators/kafka.go:
##########
@@ -31,43 +35,90 @@ import (
)
const (
- brokerCount = 1
addressSeperator = ":"
pauseDuration = 100 * time.Millisecond
- globalDuration = 2 * time.Second
+ globalDuration = 120 * time.Second
bootstrapServerKey = "bootstrap.servers"
networkType = "tcp"
jsonExt = ".json"
avroExt = ".avro"
)
type KafkaMockCluster struct {
- cluster *kafka.MockCluster
- host string
- port string
+ cmd *exec.Cmd
+ host string
+ port string
+ preparerParameters map[string]string
}
-func NewKafkaMockCluster() (*KafkaMockCluster, error) {
- cluster, err := kafka.NewMockCluster(brokerCount)
+func NewKafkaMockCluster(emulatorExecutablePath string) (*KafkaMockCluster,
error) {
+ cmd := exec.Command("java", "-jar", emulatorExecutablePath)
Review Comment:
Please consider checking cmd.Err before going further
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]