Skip to content

6.13.16 scour attempts to lstat a file deleted via another thread, race condition #103

@akrherz

Description

@akrherz

I am using LDM 6.13.16 on Centos 8 Stream 64 bit. I've noticed that since the upgrade to this release, I sometimes get errors like the following from ldmadmin scour

20211028T090217.262441Z scour[118662] scour.c:scourFilesAndDirs:291 ERROR lstat("/data/gempak/nexrad/NIDS/LVX/N3K/N3K_20211026_0045") failed: No such file or directory

Out of deleting thousands of files, I only see one or two errors reported on some days, but not all. I know that you recently updated scour to use c code and not perl, perhaps there is some threading / race condition with how files are deleted?

The /data path is NFS mounted, so perhaps there is troubles there. I verified that I am only running 1 scour process from cron and this is my scour.conf

/mesonet/data/gempak/model      1
/data/gempak/model				10
/data/gempak/nexrad				2
/data/gempak 					8
/data/rcm						7
/data/text						14

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions