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
Copy file name to clipboardExpand all lines: NuGet.Config
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
<clear />
5
5
<!-- Do not add any additional feeds if new packages are needed they need to come from our azure-sdk-for-net DevOps feed which has an upstream set to nuget.org -->
$"Failed to acquire EH client concurrency slot within {PartitionPropertiesWaitTimeoutMs}ms for Event Hub '{_client.EventHubName}', partition '{partition}'.");
$"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}");
89
-
cts.Cancel();
90
-
}
91
-
throw;
89
+
_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}");
106
+
_logger.LogFunctionScaleError($"Encountered an exception while getting partition information for Event Hub '{_client.EventHubName}' used for scaling.",_functionId,e);
$"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);
121
+
thrownewTimeoutException(
122
+
$"Failed to acquire checkpoint concurrency slot within {CheckpointWaitTimeoutMs}ms for Event Hub '{_client.EventHubName}', partition '{partition}'.");
130
123
}
131
-
catch(Exceptione)
124
+
125
+
returnawait_checkpointStore.GetCheckpointAsync(
126
+
_client.FullyQualifiedNamespace,
127
+
_client.EventHubName,
128
+
_client.ConsumerGroup,
129
+
partition,
130
+
cts.Token).ConfigureAwait(false);
131
+
}
132
+
catch(Exceptione)
133
+
{
134
+
if(!cts.Token.IsCancellationRequested)
132
135
{
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}");
136
-
cts.Cancel();
137
-
}
138
-
throw;
136
+
_logger.LogDebug($"Requesting cancellation of other checkpoint tasks. Error while getting checkpoint for eventhub '{_client.EventHubName}', partition '{partition}': {e.Message}");
_logger.LogWarning($"Encountered an exception while getting checkpoints for Event Hub '{_client.EventHubName}' used for scaling. Error: {e.Message}");
153
+
_logger.LogFunctionScaleError($"Encountered an exception while getting checkpoints for Event Hub '{_client.EventHubName}' used for scaling.",_functionId,e);
stringdetails=$"Target worker count for function '{_functionId}' is '{validatedTargetWorkerCount}' (EventHubName='{_client.EventHubName}', EventCount ='{eventCount}', Concurrency='{desiredConcurrency}', PartitionCount='{partitionCount}').";
_logger.LogInformation($"Desired target worker count of '{desiredWorkerCount}' is not in list of valid sorted workers: '{string.Join(",",sortedValidWorkerCounts)}'. Using next largest valid worker as target worker count.");
109
+
details+=$" Desired target worker count of '{desiredWorkerCount}' is not in list of valid sorted workers: '{string.Join(",",sortedValidWorkerCounts)}'. Using next largest valid worker as target worker count.";
109
110
}
110
111
111
-
_logger.LogInformation($"Target worker count for function '{_functionId}' is '{validatedTargetWorkerCount}' (EventHubName='{_client.EventHubName}', EventCount ='{eventCount}', Concurrency='{desiredConcurrency}', PartitionCount='{partitionCount}').");
0 commit comments