feat: add iperf3 for Dockerfile and change is_expired for PersistentCacheTask #975
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request includes changes to the
ci/Dockerfile
and thedragonfly-client-storage/src/metadata.rs
file. The most important changes are the addition of a new package to the Dockerfile and the simplification of the expiration logic in thePersistentCacheTask
implementation.Dockerfile Update:
ci/Dockerfile
: Addediperf3
to the list of packages installed during the Docker image build process. This addition ensures thatiperf3
is available in the Docker image for network performance testing.PersistentCacheTask Logic Simplification:
dragonfly-client-storage/src/metadata.rs
: Simplified the expiration check in theis_expired
method of thePersistentCacheTask
struct by removing the additional time buffer previously used to force eviction. Now, the task is considered expired strictly based on thettl
value.Related Issue
Motivation and Context
Screenshots (if appropriate)