Page MenuHomeSoftware Heritage

FUSE: cache: put by-date/ entries in direntry cache
ClosedPublic

Authored by haltode on Jan 5 2021, 10:41 AM.

Details

Summary

Since those entries are updated in the background, we invalidate the
cache on a regular basis.

Close T2864. This should also fix the second problem of T2830, namely
the fact that get_entries(by_date, offset) was not reliable because of
the offset supposing the entries were the same every time.

Diff Detail

Repository
rDFUSE FUSE virtual file system
Branch
feature/cache-by-date-entries
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 18168
Build 28044: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 28043: arc lint + arc unit

Event Timeline

Build is green

Patch application report for D4805 (id=17030)

Rebasing onto b59cf2a1d1...

Current branch diff-target is up to date.
Changes applied before test
commit 3c0ac58f956ade5d74fa0ce1431d4503b4c94c51
Author: Thibault Allançon <haltode@gmail.com>
Date:   Tue Jan 5 10:37:08 2021 +0100

    cache: put by-date/ entries in direntry cache
    
    Since those entries are updated in the background, we invalidate the
    cache on a regular basis.
    
    Close T2864. This should also fix the second problem of T2830, namely
    the fact that get_entries(by_date, offset) was not reliable because of
    the offset supposing the entries were the same every time.

See https://jenkins.softwareheritage.org/job/DFUSE/job/tests-on-diff/259/ for more details.

Use number of API calls instead of %.

Build is green

Patch application report for D4805 (id=17039)

Rebasing onto b59cf2a1d1...

Current branch diff-target is up to date.
Changes applied before test
commit 26ee05f3bd82f91b0a4a23fad4c9e7ed0c6aa28a
Author: Thibault Allançon <haltode@gmail.com>
Date:   Tue Jan 5 10:37:08 2021 +0100

    cache: put by-date/ entries in direntry cache
    
    Since those entries are updated in the background, we invalidate the
    cache on a regular basis.
    
    Close T2864. This should also fix the second problem of T2830, namely
    the fact that get_entries(by_date, offset) was not reliable because of
    the offset supposing the entries were the same every time.

See https://jenkins.softwareheritage.org/job/DFUSE/job/tests-on-diff/260/ for more details.

This revision is now accepted and ready to land.Jan 5 2021, 6:01 PM