Skip to content

fix(LakeFS-mount): treat a FUSE mount that cannot be listed as dead - #8832

Merged
aicam merged 3 commits into
apache:mainfrom
aicam:fix/dead-fuse-mount
Nov 16, 2026
Merged

aicam merged 3 commits into
apache:mainfrom
aicam:fix/dead-fuse-mount

Conversation

@aicam

@aicam aicam commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

A dead GeeseFS mount stays in /proc/mounts and can still answer stat() from cached attributes, but every read fails with Transport endpoint is not connected. RepositoryMountManager.isFuseMounted and the mounter's _responds both 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_mount replaces it.

Any related issues, documentation, discussions?

Follow-up to #6866 and #6897 (part of #6606).

How was this PR tested?

  • New tests in RepositoryMountManagerSpec and test_mounter.py. The mounter's dead-mount test (stats fine, listing fails with ENOTCONN) fails on the old check.
  • Checked both rules against real dead mounts on a live cluster: inside the pod, 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

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]>
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • No candidates found from git blame history.

@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Backport auto-label report

This fix: PR was checked against each actively-supported release branch. A release/* label nominates a backport target; the branch's release manager approving this PR is what sends the fix there. The required Backport Approvals check stays red until every label below is approved, so each manager either approves or removes their own label — which is why the labels left on a merged PR are exactly the branches it reached.

Release branch Analysis
⚠️ release/v1.3 Not labeled automatically — none of the files this PR modifies exist on this branch (bin/mounter/mounter.py, bin/mounter/tests/test_mounter.py, common/workflow-core/src/main/scala/org/apache/texera/amber/core/storage/RepositoryMountManager.scala, common/workflow-core/src/test/scala/org/apache/texera/amber/storage/RepositoryMountManagerSpec.scala). The fix may target code that isn't on this release, or the files were moved/renamed after the branch was cut. Please check and add release/v1.3 by hand if this fix should be backported here — its release manager then has to approve before this PR can merge.
⚠️ release/v1.2 Not labeled automatically — none of the files this PR modifies exist on this branch (bin/mounter/mounter.py, bin/mounter/tests/test_mounter.py, common/workflow-core/src/main/scala/org/apache/texera/amber/core/storage/RepositoryMountManager.scala, common/workflow-core/src/test/scala/org/apache/texera/amber/storage/RepositoryMountManagerSpec.scala). The fix may target code that isn't on this release, or the files were moved/renamed after the branch was cut. Please check and add release/v1.2 by hand if this fix should be backported here — its release manager then has to approve before this PR can merge.

Auto-label run.

@aicam
aicam requested a review from parshimers October 3, 2026 21:55
@aicam aicam self-assigned this Oct 3, 2026

@parshimers parshimers left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there not some better way than trying to list the files?

@aicam

aicam commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

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.

@aicam
aicam enabled auto-merge October 5, 2026 17:57
@codecov-commenter

codecov-commenter commented Oct 6, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 91.61%. Comparing base (7adc729) to head (5a59161).

Files with missing lines Patch % Lines
...ra/amber/core/storage/RepositoryMountManager.scala 66.66% 0 Missing and 1 partial ⚠️
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     
Flag Coverage Δ *Carryforward flag
access-control-service 77.44% <ø> (ø)
agent-service 99.56% <ø> (ø) Carriedforward from 7adc729
amber 85.35% <66.66%> (+0.01%) ⬆️
computing-unit-managing-service 64.05% <ø> (ø)
config-service 87.73% <ø> (ø)
file-service 82.16% <ø> (ø)
frontend 96.42% <ø> (ø) Carriedforward from 7adc729
notebook-migration-service 83.77% <ø> (ø)
pyamber 98.50% <ø> (ø) Carriedforward from 7adc729
workflow-compiling-service 78.30% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Benchmark changes need a look

🟢 2 better · 🔴 10 worse · ⚪ 3 noise (<±5%) · 0 without baseline

Compared against main 7adc729 benchmarked on this same runner, so the delta is largely free of cross-runner hardware noise. The "7d avg" column still reflects the gh-pages dashboard. Treat <±5% as noise unless repeated.

Dashboard · Run

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

@aicam
aicam added this pull request to the merge queue Nov 16, 2026
Merged via the queue into apache:main with commit a915d6b Nov 16, 2026
35 checks passed
@aicam
aicam deleted the fix/dead-fuse-mount branch November 16, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants