question

AlexanderKhalyapin-2124 avatar image
0 Votes"
AlexanderKhalyapin-2124 asked AlexanderKhalyapin-2124 commented

RDP Drive Redirection issue: file on redirected drive is not removed because of race condition

CASE:
- connect from Windows 10 (10.0.19041.0) to Windows Server 2016 Datacenter (10.0.14393.0) remote desktop
- run 2 powershell scripts, which create/delete files in a loop, see attachment), in parallels:
.\delete-file-test.ps1 -Path \\tsclient\c\test -NamePrefix a_ -Iterations 100
.\delete-file-test.ps1 -Path \\tsclient\c\test -NamePrefix b_ -Iterations 100

EXPECTED:
- scripts create and delete files on a redirected drive

ACTUAL:
- after a number of iterations one of the script processes finds an issue in file deletion:
Unexpected list of items (b_file2) in folder '\\tsclient\c\test\b_folder'

NOTE: it seems there is a race condition in RDP Drive redirection protocol implementation. For a failed script iteration ProcMon cannot see an appropriate SetInformationFile for the file deletion which was assumed as successful in the script. 95148-delete-file-test-ps1.txt


remote-desktop-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jingruihan-MSFT avatar image
0 Votes"
Jingruihan-MSFT answered AlexanderKhalyapin-2124 commented

Hi,

For better clarity and to assist you better, please submit your request through this web.

https://windowsserver.uservoice.com/forums/295047-general-feedback

Any feedback you can give us on this would be highly appreciated.

Best regards.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jingruihan-MSFT avatar image
0 Votes"
Jingruihan-MSFT answered AlexanderKhalyapin-2124 commented

Hi,

The scope of Windows Remote Desktop Service includes the installation, configuration and use of RDS service.
The question you mentioned has exceeded the scope of our support.
Your understanding is highly appreciated.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for the answer.
Well, I am going to file the issue. I believe it is an issue and it would be better to inform Microsoft developers about this.
What is the process to file such an issue, could you please help?

1 Vote 1 ·