Use receiver timeout for underlying API calls to Event Hubs so that the connector can retry on failures (#492)
This commit is contained in:
Родитель
244613f4b1
Коммит
fbc606f0fd
|
@ -51,7 +51,7 @@ private class ClientConnectionPool(val ehConf: EventHubsConf) extends Logging {
|
|||
s"No clients left to borrow. EventHub name: ${ehConf.name}, " +
|
||||
s"ConsumerGroup name: $consumerGroup. Creating client ${count.incrementAndGet()}")
|
||||
val connStr = ConnectionStringBuilder(ehConf.connectionString)
|
||||
connStr.setOperationTimeout(ehConf.operationTimeout.getOrElse(DefaultOperationTimeout))
|
||||
connStr.setOperationTimeout(ehConf.receiverTimeout.getOrElse(DefaultOperationTimeout))
|
||||
EventHubsClient.userAgent =
|
||||
s"SparkConnector-$SparkConnectorVersion-[${ehConf.name}]-[$consumerGroup]"
|
||||
while (client == null) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче