apache / apache/dubbo

[Feature] Retries are required for file deletion

Open
#14,256 3 comments 0 reactions 0 assignees View on GitHub
type/proposal
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

### Pre-check

- [X] I am sure that all the content I provide is in English.

### Search before asking

- [X] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar feature requirement.

### Apache Dubbo Component

Java SDK (apache/dubbo)

### Descriptions

Retries are really required while deleting any files.
"Files.delete(pathOfFile)" in "FileCacheStore" may fail due to any of below reasons
"File is in Use", "File Locking", "File System Delays", "Concurrency Issues" etc.

### Related issues

_No response_

### Are you willing to submit a pull request to fix on your own?

- [X] Yes I am willing to submit a pull request on my own!

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

Contributor guide

Open the contributing guide

Research direction

Start in the Java SDK's FileCacheStore and inspect the Files.delete(pathOfFile) call. Determine how file-in-use, locking, filesystem-delay, and concurrency failures are handled, then verify that deletion retries occur and eventually report failure when retries are exhausted.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.