我正在使用一个Azure函数,该函数读取事件hu“ v1-notification-events”。该集线器已删除,当我对其进行重新制作(同名)时,运行该功能时出现错误。错误提示:
"Error processing event from Partition Id:1, Owner:<some guid...>, EventHubPath:v1-notification-events"
...
The supplied offset '10100' is invalid
我用一个不同的名称重新制作了一个新的Notification Event中心,现在没有问题。但是好奇是否有办法解决这个问题并使用相同的名称?
[FunctionName("HandleEvent")]
[return: EventHub("v1-email-hub", Connection = "EventHubConnection")]
public static async Task<EventData> Run([EventHubTrigger("v1-notification-events", Connection = "EventHubConnection")] EventData[] events,
[Inject] NotificationLogic notificationLogic,
[Inject] NotificationEventLogic eventLogic,
ILogger log)
{
...
}