We have an ETL application and we have thousands daily tasks importing, generating, exporting, deleting and renaming CSV files. IN years is the 2nd time we see this behaviour, but now is worst than the previous one.
A file got stucked in a DELETE PENDING STATE! No one can read, delete, take ownership of the file. Procmon shows as DELETE PENDING state wich makes sense, this is the behaviour of the APplication regaring the stored CSV files
I´m trying to avoid reboot or CHKDSK because is a production (non-stop) Server
icacls C:\DADOSETL\RH\INPUT\BIFIN2016.csv
C:\DADOS\ETL\RH\INPUT\BIFIN_COLABORADOR_ORCADO_2016.csv: Access is denied.
takeown /f C:\DADOSETL\RH\INPUT\BIFIN2016.csv
ERROR: Access is denied.
Event Class:File System
Operation:CreateFile
Result:DELETE PENDING
Path:\Device\HarddiskVolume4\ETL\RH\INPUT\BIFIN2016.csv
Desired Access:Read Control
Dis"Apple-tab-span" style="white-space:pre;"> Open
Options:Open Reparse Point
Attributes:n/a
ShareMode:Read, Write, Delete
AllocationSize:n/a
handle64.exe C:\DADOSETL\RH\INPUT\BIFIN2016.csv
No matching handles found.
Based on the PID, i could find this proccess related to the trying of the delete operation:
SRV-DTC-002 C:\Users\fborup-adm>tasklist /fi "pid eq 644" /svcImage Name PID Services
========================= ======== ============================================
svchost.exe 644 DcomLaunch, PlugPlay, Power