Repository navigation
fix(LakeFS-mount): treat a FUSE mount that cannot be listed as dead - #8832
Conversation
A computing unit whose GeeseFS process had died could never mount that repository again. The mount stays in /proc/mounts and can still answer stat() from attributes the kernel cached, but every read fails with "Transport endpoint is not connected". RepositoryMountManager.isFuseMounted only asked whether the mount was listed, so it reported "already mounted", never requested the mount again, and the operator found an unreadable directory. The mounter replaces a dead mount when asked, but its own liveness check, _responds, used stat() too, so a dead mount that still stats would be handed back as live. Both now require the mount's directory to be listable. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Automated Reviewer SuggestionsBased on the
|
Backport auto-label reportThis
|
parshimers
left a comment
There was a problem hiding this comment.
is there not some better way than trying to list the files?
It seems listing treat different reasons of problematic mount the same, I guess for us its ok because we just want to make sure we detect failed mounting accurately, why it failed does not matter. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8832 +/- ##
=========================================
Coverage 91.61% 91.61%
Complexity 5047 5047
=========================================
Files 1284 1284
Lines 57036 57038 +2
Branches 7420 7421 +1
=========================================
+ Hits 52251 52256 +5
+ Misses 2914 2909 -5
- Partials 1871 1873 +2
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
| config | throughput | MB/s | latency | max Δ latest / 7d | |
|---|---|---|---|---|---|
| 🔴 | bs=10 sw=10 sl=64 | 381 | 0.232 | 25,798/34,914/34,914 us | 🟢 -37.2% / 🔴 +154.3% |
| 🔴 | bs=100 sw=10 sl=64 | 814 | 0.497 | 120,461/161,661/161,661 us | 🔴 +29.3% / 🔴 +82.6% |
| 🔴 | bs=1000 sw=10 sl=64 | 950 | 0.58 | 1,041,599/1,237,397/1,237,397 us | 🔴 +11.6% / 🔴 +49.7% |
Baseline details
Latest main 7adc729 from same runner
| config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
|---|---|---|---|---|---|---|
| bs=10 sw=10 sl=64 | throughput | 381 tuples/sec | 409 tuples/sec | 1,005 tuples/sec | -6.8% | -62.1% |
| bs=10 sw=10 sl=64 | MB/s | 0.232 MB/s | 0.249 MB/s | 0.614 MB/s | -6.8% | -62.2% |
| bs=10 sw=10 sl=64 | p50 | 25,798 us | 19,790 us | 10,325 us | +30.4% | +149.9% |
| bs=10 sw=10 sl=64 | p95 | 34,914 us | 55,595 us | 13,728 us | -37.2% | +154.3% |
| bs=10 sw=10 sl=64 | p99 | 34,914 us | 55,595 us | 16,323 us | -37.2% | +113.9% |
| bs=100 sw=10 sl=64 | throughput | 814 tuples/sec | 868 tuples/sec | 1,347 tuples/sec | -6.2% | -39.6% |
| bs=100 sw=10 sl=64 | MB/s | 0.497 MB/s | 0.53 MB/s | 0.822 MB/s | -6.2% | -39.6% |
| bs=100 sw=10 sl=64 | p50 | 120,461 us | 114,195 us | 80,846 us | +5.5% | +49.0% |
| bs=100 sw=10 sl=64 | p95 | 161,661 us | 124,996 us | 88,523 us | +29.3% | +82.6% |
| bs=100 sw=10 sl=64 | p99 | 161,661 us | 124,996 us | 112,010 us | +29.3% | +44.3% |
| bs=1000 sw=10 sl=64 | throughput | 950 tuples/sec | 960 tuples/sec | 1,394 tuples/sec | -1.0% | -31.8% |
| bs=1000 sw=10 sl=64 | MB/s | 0.58 MB/s | 0.586 MB/s | 0.851 MB/s | -1.0% | -31.8% |
| bs=1000 sw=10 sl=64 | p50 | 1,041,599 us | 1,038,219 us | 787,853 us | +0.3% | +32.2% |
| bs=1000 sw=10 sl=64 | p95 | 1,237,397 us | 1,108,381 us | 826,583 us | +11.6% | +49.7% |
| bs=1000 sw=10 sl=64 | p99 | 1,237,397 us | 1,108,381 us | 872,816 us | +11.6% | +41.8% |
Raw CSV
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,525.33,200,128000,381,0.232,25798.10,34913.68,34913.68
1,100,10,64,20,2456.56,2000,1280000,814,0.497,120460.82,161660.64,161660.64
2,1000,10,64,20,21061.56,20000,12800000,950,0.580,1041598.83,1237397.47,1237397.47
What changes were proposed in this PR?
A dead GeeseFS mount stays in
/proc/mountsand can still answerstat()from cached attributes, but every read fails withTransport endpoint is not connected.RepositoryMountManager.isFuseMountedand the mounter's_respondsboth counted it as live. So the unit never re-requested the mount, and the operator got an unreadable directory until the unit was recreated.Both checks now require the mount's directory to be listable. The next run then re-requests the mount, and
do_mountreplaces it.Any related issues, documentation, discussions?
Follow-up to #6866 and #6897 (part of #6606).
How was this PR tested?
RepositoryMountManagerSpecandtest_mounter.py. The mounter's dead-mount test (stats fine, listing fails withENOTCONN) fails on the old check.stat()succeeded and listing failed.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)
🤖 Generated with Claude Code