monitoring-plugins icon indicating copy to clipboard operation
monitoring-plugins copied to clipboard

path-rw-test: To avoid race conditions, use a unique filename

Open NavidSassan opened this issue 4 years ago • 0 comments

If two or more checks write to the same destination:

  1. Check A writes file to shared folder Z.
  2. Check B writes file to the same shared folder Z.
  3. Check A deletes file.
  4. Check B tries to delete, but fails and complains.

So use unique filenames.

NavidSassan avatar Jun 16 '21 10:06 NavidSassan