什么可能导致 "Too many changes at once in directory:D:\home\site\wwwroot\App_Data\jobs\continuous" 异常?
What could cause the "Too many changes at once in directory:D:\home\site\wwwroot\App_Data\jobs\continuous" Exception?
我们有不同的连续 Azure WebJobs(使用 WebJobs SDK)侦听 Azure 服务总线主题,这些主题 运行 跨应用服务环境中的多个实例。每天我们都会在日志文件夹 D:\home\LogFiles\kudu\trace 中获得多个日志文件,其中包含如下异常:
<step title="Error occurred" date="2016-12-14T18:26:38.860" instance="qwerty" type="error" text="System.IO.InternalBufferOverflowException: Too many changes at once in directory:D:\home\site\wwwroot\App_Data\jobs\continuous." >
<step title="Cleanup Xml Logs" date="2016-12-14T18:26:38.907" /><!-- duration: 63ms -->
</step><!-- duration: 156ms -->
这有什么好担心的吗?有没有办法避免这种异常的发生?
不,这不是您需要担心的事情。我们的 WebJobs 基础架构使用 FileSystemWatchers 来监视文件的变化(例如,当作业 bits/sources 更新时,等等)。由于 Azure 存储问题或其他网络问题,FileWatcher 连接到的文件共享可能会不时遇到暂时性问题,从而导致 FileWatcher 抛出错误。
我们有处理此类瞬态错误的逻辑(我们存储库中的源代码 here) and we trace them to the log file you pointed out. We log this primarily for our own use to help us monitor/diagnose issues. The logs you mentioned above are coming from this codepath. We have an issue here 以检查这些跟踪的冗长程度。
我们有不同的连续 Azure WebJobs(使用 WebJobs SDK)侦听 Azure 服务总线主题,这些主题 运行 跨应用服务环境中的多个实例。每天我们都会在日志文件夹 D:\home\LogFiles\kudu\trace 中获得多个日志文件,其中包含如下异常:
<step title="Error occurred" date="2016-12-14T18:26:38.860" instance="qwerty" type="error" text="System.IO.InternalBufferOverflowException: Too many changes at once in directory:D:\home\site\wwwroot\App_Data\jobs\continuous." >
<step title="Cleanup Xml Logs" date="2016-12-14T18:26:38.907" /><!-- duration: 63ms -->
</step><!-- duration: 156ms -->
这有什么好担心的吗?有没有办法避免这种异常的发生?
不,这不是您需要担心的事情。我们的 WebJobs 基础架构使用 FileSystemWatchers 来监视文件的变化(例如,当作业 bits/sources 更新时,等等)。由于 Azure 存储问题或其他网络问题,FileWatcher 连接到的文件共享可能会不时遇到暂时性问题,从而导致 FileWatcher 抛出错误。
我们有处理此类瞬态错误的逻辑(我们存储库中的源代码 here) and we trace them to the log file you pointed out. We log this primarily for our own use to help us monitor/diagnose issues. The logs you mentioned above are coming from this codepath. We have an issue here 以检查这些跟踪的冗长程度。