NFS client temporarily fails to delete a file created for a CIFS client to read
Applies to
- ONTAP 9
- CIFS (oplocks enabled)
- NFSv4
- ETL or other rapid file turnover workflow (create, write, read, delete between multiple clients)
- (Possible) SQL statements written into short-lived file for import into DBMS
Issue
- NFS (v4) client attempts to delete a file by issuing a REMOVE call, but receives NFS4ERR_FILE_OPEN
- Workflow characteristics:
- An NFS client creates and writes a file for import by a CIFS client (SQL Server is a known example)
- SQL Server imports are one known example - other scripted / coordinated actions between NFS and CIFS clients on the same, short-lived file could exhibit the same behavior
- Oplocks enabled on the CIFS share from which the CIFS client is importing data
- CIFS client fully reads the import file, but does not close the file proactively, preventing the NFS writer from deleting it until the oplocks held by the CIFS client expire
- An NFS client creates and writes a file for import by a CIFS client (SQL Server is a known example)