Skip to content

The deployDocs task sometimes fails to remove the previous Javadoc #15652

Open
@jzheaux

Description

@jzheaux

Sometimes, possibly due to a race condition, the deployDocs task fails in the following way:

rm: cannot remove ‘/var/www/domains/spring.io/docs/htdocs/autorepo/docs/spring-security/6.3.2-SNAPSHOT/api/org/springframework/security’: Directory not empty

Since the corresponding rm command uses -f and still fails, this may mean that another process is operating on that directory at the same time.

rsync may be a better option for achieving atomicity than removing the old directory, creating a new one, and moving the new contents into the new directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions