You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$"Failed to acquire EH client concurrency slot within {PartitionPropertiesWaitTimeoutMs}ms for Event Hub '{_client.EventHubName}', partition '{partition}'.");
_logger.LogDebug($"Requesting cancellation of other partition info tasks. Error while getting partition info for eventhub '{_client.EventHubName}', partition '{partition}': {e.Message}");
_logger.LogWarning($"Encountered an exception while getting partition information for Event Hub '{_client.EventHubName}' used for scaling. Error: {e.Message}");
$"Failed to acquire checkpoint concurrency slot within {CheckpointWaitTimeoutMs}ms for Event Hub '{_client.EventHubName}', partition '{partition}'.");
122
+
}
123
+
124
+
returnawait_checkpointStore.GetCheckpointAsync(
125
+
_client.FullyQualifiedNamespace,
126
+
_client.EventHubName,
127
+
_client.ConsumerGroup,
128
+
partition,
129
+
cts.Token).ConfigureAwait(false);
130
+
}
131
+
catch(Exceptione)
132
+
{
133
+
if(!cts.Token.IsCancellationRequested)
134
+
{
135
+
_logger.LogDebug($"Requesting cancellation of other checkpoint tasks. Error while getting checkpoint for eventhub '{_client.EventHubName}', partition '{partition}': {e.Message}");
$"Requesting cancellation of other checkpoint tasks. Error while getting checkpoint for eventhub '{_eventHubName}', partition '{partitionId}': {message}");
263
+
Assert.That(logs.Any(l =>
264
+
l.Level==LogLevel.Warning),
265
+
$"Encountered an exception while getting checkpoints for Event Hub '{_eventHubName}' used for scaling. Error: {message}");
266
+
}
267
+
231
268
[TestCase(false,0,-1,-1,0)]// Microsoft.Azure.Functions.Worker.Extensions.EventHubs < 5.0.0, auto created checkpoint, no events sent
232
269
[TestCase(true,0,-1,-1,0)]// Microsoft.Azure.Functions.Worker.Extensions.EventHubs >= 5.0.0, no checkpoint, no events sent
233
270
[TestCase(false,0,0,0,0)]// Microsoft.Azure.Functions.Worker.Extensions.EventHubs < 5.0.0, auto created checkpoint, 1 event sent. Know issue: we are not scalling out in this case.
@@ -267,5 +304,67 @@ public async Task CreateTriggerMetrics_DifferentCheckpointFormats_ReturnsExpecte
0 commit comments