In Windows OS, CassandraUnit leaves an extra "cassandra/.toDelete" snapshot track file.
After migrating to Gradle, it is flagged as "unapproved license" and fails on "rat" task.
It is annoying to manually delete this file every time.
The issue is also mentioned in
CALCITE-2442. But I found the snapshot file still exists with the fix.
I make some profling work. It seems that the snapshot track file is locked by other threads.
"The process cannot access the file because it is being used by another process."