-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed issue: throw IOException: The process cannot access the file 'xxxx\log\Non-Session-Log.messages.current.log' because it is being used by another process. #890
base: master
Are you sure you want to change the base?
Conversation
…xxx\log\Non-Session-Log.messages.current.log' because it is being used by another process.
…ssage value, the message value of the Exception should not be asserted, but rather the ErrorCode of the Exception.
This pull request is to fix this issue: #891 |
On Windows I am able to replicate your the #891 bug. (Kind of embarrassed about that one) However, when I run tests on this PR branch I'm still seeing issues. The tests themselves pass, but there's a failure on cleanup. It's not the same every time, but it's always variations of ObjectDisposedException. I'm still investigating. |
The exceptions I'm seeing are triggered when I run a sequence of SessionDynamicTest tests. Running just "DifferentPortForAcceptorTest" followed by "DynamicInitiator" will trigger it. |
I also encountered ObjectDisposedException exception which occurs only during dotnet test command execution. And it behaves normally in Visual Studio UI. |
You're right, all tests pass in VS. In addition to failing At any rate, I need to fix that. The UTs need to pass on all these platforms. |
Okay |
Hi, Bro. :) |
Initial analysis shows that the Upon further analysis, one of the following two modifications will allow the dotnet test command to work properly and no longer throw exceptions:
_currentReadTask = null;
if (ex.InnerException is OperationCanceledException)
{
// Nothing read
return 0;
}
var ioException = ex.InnerException as IOException; I would suggest using the second way to fix the problem. Also, I found out that an exception actually occurs when executing the test on the Visual Studio UI, |
…SessionLog instance has been released, there are no side effects even if the OnEvent function is called unexpectedly.
Acceptor
stops, the_isStarted
field value should be set tofalse
.