diff --git a/flow/connectors/eventhub/eventhub.go b/flow/connectors/eventhub/eventhub.go index b7d3ec5044..0a9263c6ae 100644 --- a/flow/connectors/eventhub/eventhub.go +++ b/flow/connectors/eventhub/eventhub.go @@ -116,7 +116,13 @@ func (c *EventHubConnector) SyncRecords(req *model.SyncRecordsRequest) (*model.S batch := req.Records eventsPerHeartBeat := 1000 eventsPerBatch := int(req.PushBatchSize) + if eventsPerBatch <= 0 { + eventsPerBatch = 10000 + } maxParallelism := req.PushParallelism + if maxParallelism <= 0 { + maxParallelism = 10 + } batchPerTopic := make(map[string][]*eventhub.Event) for i, record := range batch.Records {