Skip to content

fuse: report strict contention as busy - #1455

Merged
bootjp merged 1 commit into
mainfrom
feature/fuse-strict-contention
Nov 12, 2026
Merged

bootjp merged 1 commit into
mainfrom
feature/fuse-strict-contention

Conversation

@bootjp

@bootjp bootjp commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Design: docs/design/2026_10_25_partial_fuse_conflict_semantics.md

Change

Strict-mode FUSE mutations map terminal contention exhaustion to EBUSY. Legacy mounts retain EAGAIN, and uncertain outcomes retain EIO. The mapping is confined to mutation and lease-maintenance results.

Risk

The new mapping relies on ErrContentionLimit representing bounded, definitively rejected attempts or pre-effect contention. Unknown outcomes remain higher priority. This does not complete the wider strict-mode rollout gates.

Verification

  • go test -race ./internal/filesystem ./internal/filesystem/fuseadapter
  • golangci-lint run ./internal/filesystem/fuseadapter --timeout=5m
  • git diff --check

Linux mounted FUSE and Jepsen acceptance remain open for the design as a whole.

Summary by CodeRabbit

  • 不具合修正
    • 厳格モードのファイル操作で、競合上限に達したことが確認できる場合は EBUSY を返すようになりました。
    • 処理結果が不明な場合は引き続き EIO を返し、レガシー経路では競合上限時に EAGAIN を返します。

Signed-off-by: bootjp <contact@bootjp.me>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T22:54:59.571857Z 1d6ed80 Manual request
🔒 Security Review ✅ Completed 2026-11-12T22:56:35.660870Z 1d6ed80 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@bootjp

bootjp commented Nov 12, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

strict modeのFUSEミューテーションでは、ErrContentionLimitをEBUSYに変換します。legacy modeではEAGAINを維持し、不明なトランザクション結果はEIOとして扱います。

Changes: FUSE競合エラーのerrno変換

Layer / File(s) Summary
ミューテーションエラーのerrno変換
internal/filesystem/fuseadapter/adapter.go, internal/filesystem/fuseadapter/adapter_ops_test.go, docs/design/2026_10_25_partial_fuse_conflict_semantics.md
mutationErrnoを追加し、strict modeではErrContentionLimitをEBUSYに変換します。複数のFUSE操作でこの変換を使います。テストはstrict modeのEBUSY、不明な結果のEIO、legacy modeのEAGAINを検証します。設計文書は各モードの対応と、これだけではM3の受け入れ条件を満たさないことを記載します。

Estimated code review effort: 2 (Simple) | ~15 minutes

Change: Bug fix

Possibly related issues

Possibly related PRs

  • bootjp/elastickv#1337: ErrContentionLimitのerrno変換を扱い、このPRはstrict modeとlegacy modeで異なる変換を適用します。
  • bootjp/elastickv#1350: ErrContentionLimitの既定変換をEAGAINに戻しており、このPRのlegacy modeの挙動と関連します。
  • bootjp/elastickv#1335: 不明なトランザクション結果をEIOに変換する処理を導入しており、このPRの変換順序と関連します。

Suggested reviewers: claude

Merge Risk: Minimal · up to 1d6ed

Strict-mode FUSE mutations now report terminal contention as EBUSY. Legacy mounts keep EAGAIN and uncertain outcomes keep EIO. No actionable merge-blocking risk remains in the reviewed change.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed PRのタイトル「fuse: report strict contention as busy」は、変更の主要な内容と一致します。厳格モードのFUSEミューテーションで、確定した競合上限エラー(ErrContentionLimit)をEBUSYとして返す変更がmutationErrnoの追加と各操作の戻り値変換に反映されています。レガシー経路のEAGAINと、結果不明時のEIOの維持もPR目的に含ま…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

PRのタイトル「fuse: report strict contention as busy」は、変更の主要な内容と一致します。厳格モードのFUSEミューテーションで、確定した競合上限エラー(ErrContentionLimit)をEBUSYとして返す変更がmutationErrnoの追加と各操作の戻り値変換に反映されています。レガシー経路のEAGAINと、結果不明時のEIOの維持もPR目的に含まれ、タイトルは変更の中心を簡潔に示しています。

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2c632bc1-652d-4735-93bc-cfc87494a0b3
Commits

Reviewing files that changed from the base of the PR and between 09faea5 and 1d6ed80.

Files selected for processing: 3

  • docs/design/2026_10_25_partial_fuse_conflict_semantics.md
  • internal/filesystem/fuseadapter/adapter.go
  • internal/filesystem/fuseadapter/adapter_ops_test.go

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 1d6ed803e4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 1d6ed803e4

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@bootjp
bootjp merged commit 0f58b31 into main Nov 12, 2026
18 checks passed
@bootjp
bootjp deleted the feature/fuse-strict-contention branch November 12, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant