即使主机实例重新启动,文件仍保持锁定 [英] File stays locked even after host instance restart

查看:100
本文介绍了即使主机实例重新启动,文件仍保持锁定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,

Hello All,

我们有一个基于文件适配器的自定义适配器构建。适配器完成的额外工作是对文件进行排序和归档。

We have a custom adapter build over File Adapter. The extra things done by the adapter are sorting and archiving of file.

我们有2台BizTalk服务器来接收输入文件。

We have 2 BizTalk servers to receive the input files.

当适配器处理文件扩展名时,文件扩展名将更改为.inprogress。

The file extension is change to .inprogress when it is being worked upon by the adapter.

问题是有时会出现文件文件位置被锁定,即它保持在.inprogress状态,即使两个接收服务器的主机实例都停止,也不会进一步处理。如果我们尝试重命名该文件,我们会继续获得
一个程序正在处理该文件的错误。

The issue is that sometimes the file that comes on the file location gets locked i.e it stays in .inprogress status and is not processed further even if host instances of both the receive servers are stopped. If we try to rename the file we keep getting an error that the file is being worked upon by some program.

请建议做什么。

推荐答案

您好,

您的自定义代码中可能遗漏了某些内容。

You might be missing something in your custom code.

这是一篇描述类似问题的帖子:  http://payalaryabhandari.blogspot.com/2013/05/custom-file-adapter-not-releasing-file.html

Here is a post describing similar issue: http://payalaryabhandari.blogspot.com/2013/05/custom-file-adapter-not-releasing-file.html


这篇关于即使主机实例重新启动,文件仍保持锁定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆