mirror of
https://github.com/rustfs/rustfs.git
synced 2026-11-23 08:27:14 +00:00
8c9fc97ae698056ed7eceb00a7bcbe40ff0be4bb
1145 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
8c9fc97ae6 |
refactor(rdma): bind the NVIDIA cuObject server SDK in RustFS (#9563)
* refactor(rdma): bind the NVIDIA cuObject server SDK in RustFS * fix(rdma): preserve channel capacity and reuse contiguous registrations * perf(rdma): transfer ownership of cuObject upload buffers * fix(rdma): validate cuObject routing fields before transfer * refactor(rdma): isolate the cuObject server SDK in a sys crate * docs(rdma): document the workspace cuObject server bindings * perf(cuobject): reuse channels and completion registrations * fix(rdma): release eager PUT staging before requesting more chunks * fix(rdma): consume CQ readiness and copy only retained PUT frames * fix(rdma): release consumed streaming PUT frames before the next read --------- Co-authored-by: Hauser Zhi <housemecn@gmail.com> Co-authored-by: overtrue <anzhengchao@gmail.com> |
||
|
|
1b2615cdb5 |
fix(replication): recover permanently decommissioned sites (#9491)
* fix(replication): durably decommission unreachable sites * fix(replication): declare native error macro at removal boundary * fix(replication): preserve removal state and edit execution context * fix(replication): use storage boundary aliases in removal tests * fix(replication): sign local removal probes with the admin session * fix(admin): scope legacy test helper bounds to the method * test(connect): stabilize concurrent rotation timeout coverage --------- Co-authored-by: Chris An <anzhengchao@gmail.com> |
||
|
|
6256ea500e |
fix(ilm): continue tier recovery past unreadable objects (#9537)
Co-authored-by: Chris An <anzhengchao@gmail.com> |
||
|
|
40eea75614 |
fix(admin): report inventory coverage and cluster scanner activity (#9541)
* fix(admin): report inventory coverage and cluster scanner activity Join the current bucket namespace with measured usage for matching bucket identities. Report the elected scanner coordinator and previous attempt to clients connected to any node, with explicit coverage when measurements are unavailable. * fix(admin): verify scanner attempts and preserve inventory lookup budgets Start identity validation after snapshot refresh. Record terminal scanner outcomes at the bounded wait boundary and trust the durable fence for successful completion. Assert that the real leader and followers agree on an active cycle and its completion. * test(e2e): register the cluster scanner regression in distributed selection The controlled follower test adds one unconditional case to the 4-node profile. Pin the resulting 111 test IDs so the distributed workflow reaches the test runner on both supported platforms. --------- Co-authored-by: Chris An <anzhengchao@gmail.com> |
||
|
|
357c308ee1 |
fix(nixl): bound native transfers and reclaim idle peer registrations (#9542)
* fix(s3): build native RDMA upload bodies for PUT requests * fix(nixl): reclaim idle peer registrations after native completion * fix(nixl): start peer idle expiry after the last transfer finishes * fix(nixl): retain transfer permits and preserve cached peers on failure |
||
|
|
d4a5f8aeb6 |
fix(ecstore): back off blocked delete recovery per key (#9521)
* fix(ecstore): back off blocked delete recovery per key Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * perf(ecstore): avoid redundant delete recovery inspections Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * perf(ecstore): compact delete recovery decision evidence Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(build): restore Windows and workspace validation Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(test): remove unused POST policy metadata helper Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com> |
||
|
|
2381096448 |
fix(scanner): preserve restart progress and background admission (#9341)
* fix(scanner): retain unpublished bucket progress across leader changes * test(scanner): verify remote completion reuse and publication floors * fix(scanner): persist read-only checkpoint continuity * test(scanner): avoid cloning the final activity fixture * fix(scanner): resolve receipt owner before store startup * fix(scanner): gate read-only handoff behind reader-first rollout * test(scanner): accept consumed markers after heal startup * test(scanner): run handoff rollback in the pinned release lane * fix(scanner): preserve background admission during cache saves * fix(scanner): admit remote cache publications as background I/O * fix: handle disabled cgroup controllers in resource sampling * fix(scanner): wait for namespace RPC preflight admission * fix(scanner): align metric loops with current clippy * fix: resolve Rust 1.100 workspace lint diagnostics * fix(heal): simplify Linux test opt-in check * chore(scanner): expose admission and allocator diagnostics * fix(scanner): retry transient resource samples within one bracket * fix(protos): retain cancelled RPC streams during response grace * feat(diagnostics): track live Rust allocation bytes * docs(diagnostics): explain unsafe allocator test scope * fix(ecstore): reduce multipart recovery stack usage * chore: refresh PR verification * fix(protos): retain reset streams for the full cancelled burst The branch's channel reset tests cancel 80 batches of 64 streams; main's 4096 cap spends the protocol-error budget on that burst, so keep the 8192 capacity under main's constant. * fix(scanner): complete budget-stopped cycles with carried buckets pending Align with main's partial-carry semantics: a work budget that stops a bucket whose certified value is carried completes the cycle with that bucket pending and the snapshot unconverged, instead of forcing the cycle incomplete. |
||
|
|
793632c0da | docs(operations): document rollback after the S3 stack switch | ||
|
|
9c44c5ea6b |
refactor(admin): serve Object Lambda through native GetObject (#9529)
* test(storage): restore POST form metadata policy fixture * test(storage): follow the current PUT path in contract checks * fix(storage): verify archive transport EOF before parsing the final frame * test(rustfs): restore main verification after gateway migration Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * refactor(storage): retire the legacy S3 storage edge * fix(storage): bound the audited multipart copy future and trace LIST quorum causes * test(storage): pin legacy codec answers and trim test dependencies * refactor(admin): confine the legacy route adapter to parity tests * fix(deps): align bindgen and prettyplease on syn 3 for FIPS builds * refactor(admin): keep Object Lambda authorization and responses on the owned request path * fix(storage): expose the typed legacy cause on owned errors * refactor(admin): read and return native GetObject fields for Object Lambda * ci: ratchet the legacy S3 footprint after the control-plane migration * refactor(admin): remove the unused envelope-to-extensions adapter * test(admin): guard the Object Lambda response token checks at their definition * refactor(admin): serialize AssumeRole credentials without the legacy DTO * test(admin): assert native range and error types at the test boundary * test(admin): compare errors in the legacy route parity tests * refactor(notify): initialize event rules from persisted notification types * refactor(admin): return the idle rebalance response on the owned HTTP path * refactor(storage): keep the persisted-to-legacy XML oracle in tests * test(admin): compare extension refusals using the native error code * fix(obs): filter verbose native gateway protocol events at every sink * test(storage): preserve stream lengths and request facts on retired seams --------- Co-authored-by: Hauser Zhi <housemecn@gmail.com> Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com> |
||
|
|
31e0798637 |
refactor(storage): retire the legacy S3 storage edge (#9527)
* test(storage): restore POST form metadata policy fixture * test(storage): follow the current PUT path in contract checks * fix(storage): verify archive transport EOF before parsing the final frame * test(rustfs): restore main verification after gateway migration Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * refactor(storage): retire the legacy S3 storage edge * fix(storage): bound the audited multipart copy future and trace LIST quorum causes * fix(deps): align bindgen and prettyplease on syn 3 for FIPS builds * fix(storage): expose the typed legacy cause on owned errors * test(storage): preserve stream lengths and request facts on retired seams --------- Co-authored-by: Hauser Zhi <housemecn@gmail.com> Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com> |
||
|
|
e462fafb65 | docs: describe the gateway stack as the only S3 stack in the CI gates and the changelog | ||
|
|
e811755b8d |
fix(iam): bind plugin registration to request owner snapshots
Authenticate the actual request signing secret against the authoritative regular-owner record before reading the registration body. Carry its epoch and identity revision through publication without rebinding to a newer owner. Reject stale peer signing secrets and concurrent owner changes, including same-secret recreation, rotation back to an old secret, revision-only rewrites, and legacy-initialization readback races. Preserve the independent STS generation and unchanged-secret upsert policy. Add deterministic real-store and handler regressions and document the secret-reuse boundary. This is a separate correction layer for #3266 above the generation-aware integration. Validation: cargo fmt --all --check, git diff --check 05d9825, scripts/check_doc_paths.sh, and scripts/check_no_planning_docs.sh passed. Compilation, runtime tests, and Clippy are deferred as requested. |
||
|
|
efed8a35d2 | fix(iam): integrate plugin epochs with generation-aware identity writes | ||
|
|
b656745305 | fix(iam): bind plugin delegations to durable owner epochs | ||
|
|
ef974ad719 | fix(iam): fence regular-user STS sessions by durable parent generation | ||
|
|
9e57f83885 |
feat(storage): add opt-in EC layouts and frame-aware local reads (#9255)
* perf(ecstore): reduce allocations for bounded bitrot frames * test(s3): cover dynamic block layouts over HTTP * perf: measure quantized range read shape * chore: checkpoint quantized read metrics draft Save work in progress for collaboration. Counts omit retired readers and transient or cancelled hedges. Frame semantics, async recorder coverage and disabled-metrics overhead remain unresolved; these counters are not ready for performance conclusions. Validation: rustfmt and ecstore check passed; io-metrics 120, quantized 4 and hashed-read 3 tests passed. No new live or performance validation. * perf(ecstore): reduce dynamic layout read overhead * fix(ecstore): avoid prefetching conservative short range tails * perf(ecstore): compact deferred shard reader state * perf(ecstore): include shard checksums in file buffer cap * fix(ecstore): preserve bounded quantum frames during heal * perf(ecstore): reuse owned quantized frame batches * perf(ecstore): batch q reads and retain shared copy framing * fix(ecstore): preserve typed quantized read errors * perf(ecstore): avoid zero-fill and serial copies in local batch reads The local batch reader zero-initialized every window at a nonzero offset before reading it, and copied every shard serially inside one blocking task. Two-segment q-window range reads (cross-shard, cross-block) pay both costs twice per request. Read each window with a positioned read into uninitialized Vec capacity, and dispatch each shard separately when every window is at least 512 KiB, where copies dominate blocking-pool round trips. Smaller windows keep one coalesced dispatch. * perf(ecstore): keep readahead pipelined for local batch windows A single window-sized pread on cold pages waits on each kernel readahead chunk in turn. Seek to the window start and fill the buffer with read_to_end over a length-limited reader instead: it still reads into uninitialized spare capacity, but its growing sequential reads keep readahead pipelined. Warm windows cost the same. * Revert "perf(ecstore): keep readahead pipelined for local batch windows" This reverts commit |
||
|
|
66eb65da06 | fix(iam): revoke group-only grants for existing OIDC credentials | ||
|
|
177572b0d9 | fix(auth): enforce explicit denies on own-password and MFA changes | ||
|
|
447f18db43 |
fix(ecstore): preserve degraded reads during cold startup (#9490)
* fix(ecstore): admit degraded local startup at read quorum Keep absent local volumes in configured offline slots and admit existing native formats with nonvoting blank replacements. Preserve legacy validation and elected migration authority before degraded reads. Add startup, migration, readiness and real S3 cold-start regressions. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(ecstore): separate startup reads from metadata writers Install committed startup metadata under a shared namespace fence when no writer work is required. Revalidate under the existing exclusive pipeline before bootstrap, recovery, repair, or topology side effects, and check fence validity at publication. Cache existing-format read admission and avoid legacy scans below native read quorum for ineligible nonwriters. Cover shared-lock contention, authority bytes, released fences, and completed-process and cold-store retries. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(ecstore): separate legacy read compatibility from migration Validate observed legacy layouts against an established native read quorum without requiring legacy migration quorum. Reuse known unavailable native slots to avoid repeated peer RPCs. Keep migration behind its original elected-writer, availability and strict-majority requirements, and grant no bootstrap authority to read-compatible outcomes. Add full-loader regressions for blank plus unreachable or missing slots, both creator roles, conflicting evidence and unchanged authority files. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(ecstore): route startup test through storage facade Use the existing internal NamespaceLocking re-export in the startup regression, preserving the architecture boundary checked by CI. Production code and the trait identity are unchanged. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(iam): preserve virtual parent collision invariant Keep the federated binding regression focused on colliding regular and STS policy mappings. Virtual OIDC parent keys are now intentionally reserved and cannot identify regular users; that invariant already has direct IAM coverage. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(gateway): project POST form metadata safely Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(gateway): preserve form authority across feature boundaries Keep archive extraction decisions on projected POST form headers in gateway builds while preserving ordinary header handling without that feature. Update the checksum regression to model the signed form source instead of a forbidden wire object property. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Signed-off-by: Hauser Zhi <housemecn@gmail.com> Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com> |
||
|
|
b417d25165 | fix(auth): require separate permission to change OIDC providers | ||
|
|
4aded279ae | docs(storage): clarify drive isolation for separate clusters (#9493) | ||
|
|
1c4a7c2f8b | feat(gateway): serve browser object uploads | ||
|
|
0717dc1b0d | fix(gateway): honor configured unread body timeout | ||
|
|
f2003af73d |
fix(ecstore): recover deletes on full disks (#9465)
* fix(ecstore): reserve emergency space for delete journals Keep bounded physical metadata headroom for recoverable deletion on Unix without bypassing quorum or rollback. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * refactor(ecstore): recover delete metadata space on demand Share a pinned reserve owner per physical disk and keep healthy deletion free of reserve filesystem probes. Retry only disposable staging and idempotent metadata primitives after actual ENOSPC, preserving transaction publication and quorum boundaries. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * perf(ecstore): retry concurrent full-disk deletes Serialize ENOSPC waiters per physical disk and give each safe metadata primitive one bounded retry against shared released capacity. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(ci): account for delete reserves in receipt fixture Reject undersized tmpfs mounts after including the eight per-disk delete reserves and keep a self-test for the capacity boundary. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(heal): refresh resume admission fixture lease Refresh the existing node admission sample immediately before starting resume GC so the cancellation test reaches the native-open ownership boundary. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(ecstore): inject receipt ENOSPC on hardlink path Keep the receipt fault at the atomic allocation boundary after the stage-two hardlink fast path landed, so reserve recovery remains covered. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com> |
||
|
|
cbe5b16758 | test(rpc): verify timeout boundary evidence (#9482) | ||
|
|
571d100a27 |
perf(ecstore): align inline placement and batch deletion codecs (#9449)
* feat(ecstore): align inline budgets and binary batch decoding Use a fixed 128 KiB per-shard inline budget with versioned admission and preserve historical configuration markers and persisted object layouts. Decode binary delete batches independently of the legacy JSON list while retaining JSON-only requests and dual-write senders. Reject malformed binary entries before disk mutation and preallocate the selected batch. Cover budget boundaries, layout coexistence, MinIO metadata fixtures, binary-only batches and JSON compatibility. Document geometry and rollback boundaries. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(ecstore): add isolated Docker inline geometry validation Build clean-source Linux validation images from a frozen Git bundle. Pin running image identities and binary hashes, and inspect persisted object geometry through the existing filemeta decoder. Provide an owned four-node Docker adapter for the existing ABBA runner. Guard resource ownership, isolate loopback access, serialize state mutations, and verify HEAD, full GET and Range contents. Keep PUT content probes available through an isolated Linux mc adapter when a host client cannot initialize. Cover ownership and failure paths with script tests wired into the existing runner. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(ecstore): reuse bounded verified inline bodies Share the materialization contract between metadata pre-verification and buffered inline GETs. Bound responses to 2 MiB and a limited frame count, and reuse an already verified body within the selected snapshot. Route proof-protected parts through the readers that bind PartProofReader. Cover larger single-block bodies, allocation bounds and proof validation after a shard's bitrot checksum has been recomputed. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * feat(ecstore): support bounded multi-block inline objects Keep the default EC block and accumulated shard budget while bounding inline frame storage and verified-body reuse. Preserve transformed and protected write admission and existing metadata formats. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(ecstore): isolate inline transport comparison modes Pin and verify both MessagePack-only gates for each Docker cell, preserve an explicit JSON compatibility cell and probe exact accumulated shard boundaries. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(ecstore): cover inline rollback and mixed-reader fleets Add reusable compatibility fixtures for null and versioned objects, cross-block ranges, unfinished multipart uploads and batch version deletion. Record coordinator identity and per-version geometry, preserve retained-data manifests and archive manifests on dataset resets. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * refactor(ecstore): unify bounded inline read and write paths Share checked frame decoding across metadata preverification and GET, resolve write admission once, and use one checked physical shard length for inline and disk writers. Preserve proof-bound readers and erasure recovery for damaged or missing shards. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(testing): persist inline compatibility mutation receipts Save successful multipart and delete receipts before fallible content and geometry checks. Resume completed mutations through verification without repeating writes, and cover read failures, geometry failures, and command retries. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(gateway): isolate capability probes from multipart listings Give successful capability probes their own buckets so CreateMultipartUpload does not change the exact two-upload pagination fixtures. Preserve all listing-boundary assertions on both HTTP stacks. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * perf(rpc): honor fleet-confirmed codecs for batch deletion Build DeleteVersions requests with one codec policy for the complete batch. Emit JSON compatibility fields by default and binary-only batches after both existing fleet gates pass. Cover request fields, canonical binding and actual remote sender, handler and disk deletion in both modes. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * perf(ecstore): verify inline shards through borrowed frames Share borrowed frame verification across buffered GET, bitrot readers and deep inline healing. Validate exact physical framing before scanning memory slices. Cover short prefixes, legacy padded frames, damage and trailing data, and provide a reproducible manual ABBA kernel comparison. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(ci): account for manual inline verification benchmark Raise the ECStore ignored-test ceiling from 2 to 3 for the opt-in ABBA comparison of borrowed and streaming bitrot verification. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(ecstore): reject inexact inline shard framing Validate the complete encoded length of every selected inline data shard before decoding or caching a verified object body. Return to the erasure reader on missing, truncated, or trailing payload bytes. Extend decoder fixtures across single and multi-block geometry, legacy padding, unhashed payloads, and explicit bitrot verification bypass. Cover metadata early-stop rejection and GET recovery for trailing shard bytes. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * refactor(ecstore): share inline shard reader construction Build owned-metadata and borrowed-metadata readers through one Send iterator-based factory. Preserve shard ordering, empty slots, bitrot settings and caller-bound integrity verification. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * perf(rpc): move endpoint buffers into batch delete requests Transfer the prepared endpoint String into the protobuf request and assert allocation identity across every batch codec mode. This removes the intermediate endpoint copy during request construction. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(gateway): remove superseded pagination isolation Use the upstream capability probes that clean up their own multipart sessions. Run probes against the seeded pagination bucket while keeping all exact page and cursor assertions. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(table-catalog): recognize borrowed multipart guard calls Count owned and borrowed bucket/key guard forms while requiring all four production calls. Cover mixed split-file calls and reject wrong resources, missing error propagation and test-only mentions. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(ecstore): size heal cleanup fixtures above inline budgets Use an environment-independent per-pool fixture policy and payload sizes above the aggregate inline budget. Assert external placement before pausing old-data cleanup, rebuilding the committed generation and checking physical shards and the final payload. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(table-catalog): count borrowed object metadata guards Recognize the borrowed bucket/key guards in migrated legal-hold and retention entrypoints. Validate two object and two key guards and cover incorrect resources, missing propagation and test-only mentions. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com> |
||
|
|
849cdd6319 |
feat(ecstore): stage quorum-proof metadata cache (#9454)
* feat(lock): carry cache fence quorum proofs Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * feat(ecstore): stage proof-bound distributed cache Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * docs(ecstore): refine cache activation blockers Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: zhi22915 <qiuzgang@gmail.com> Co-authored-by: heihutu <heihutu@gmail.com> |
||
|
|
dc7f4e943c |
fix(ecstore): unify commit durability and reduce inline dispatches (#9451)
* fix(ecstore): honor file-sync policy in inline fallback commits Apply metadata, directory, and recovery synchronization policies separately while retaining rollback publication barriers. Add sync-budget regressions and small-object I/O profiling guidance. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * refactor(ecstore): unify recovery-aware commit synchronization Share recovery-directory policy across fused and fallback commits. Complete fresh file-sync publication within preparation and verify queue budgets, rollback recovery, and inline-to-external overwrites. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(ecstore): isolate sync counts across reused disk handles Consume the metadata synchronization count for every external write attempt before releasing a Linux procfs-backed fixture, including failed publication and retry. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com> |
||
|
|
0278e1cd0e |
fix(iceberg): recover renames and unblock namespace deletion (#9440)
* fix(iceberg): recover renames and unblock namespace deletion * fix(iceberg): fence rename recovery with restore lease --------- Co-authored-by: Hauser Zhi <housemecn@gmail.com> |
||
|
|
fb9f19c6d2 |
fix(rpc): scope canary errors to grpc failures (#9453)
* fix(rpc): scope canary errors to grpc failures Exclude expected read-version remote responses without hiding transport, gRPC status, response-decode, or other gRPC operation failures. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(rpc): verify canary revisions from image history Use immutable image history only when recognized config labels are absent, keep mismatches fail-closed, and record the provenance source in verifier output. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(audit): restore bucket config audits and metadata guards Audit accelerate, request-payment, and website configuration mutations through the shared owned request scope, including failures and the website deletion status. Validate the replication mutation delegation before checking peer reload notifications. Count borrowed reserved-prefix guard calls and cover missing production calls, test-only mentions, audit completion, and stale bucket incarnations. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: zhi22915 <qiuzgang@gmail.com> Co-authored-by: heihutu <heihutu@gmail.com> |
||
|
|
a8cf62f8f3 |
fix(metrics): label grouped fdatasync batches accurately (#9446)
* fix(metrics): label grouped fdatasync batches accurately Record the serialized user-space fdatasync coordinator as grouped and reserve parallel for independent per-file fanout. This keeps performance dashboards from conflating two different dispatch models. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(ecstore): separate grouping from timeout race Keep the same-disk batching test focused on queue aggregation. Claimed-follower timeout ownership remains covered by its dedicated deterministic regression, avoiding a valid pre-claim timeout race in the batching fixture. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(table-catalog): accept borrowed multipart guard calls Count both owned String and borrowed &str spellings of the same reserved-prefix guard. UploadPart now obtains borrowed bucket and key values from its typed target, while the production guard remains in place. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: zhi22915 <qiuzgang@gmail.com> |
||
|
|
d0fd6425e4 |
feat(rpc): guard stale generations before dispatch (#9435)
* perf(grpc): attribute rebuilds and bound bulk responses Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(grpc): attribute rebuild success after publication Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * feat(obs): add exact HTTP/2 ping timeout diagnostics Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(multipart): run refusal matrix on large stack Run the real-store completion refusal matrix through the shared 32 MiB test harness so its deep async storage future does not overflow libtest's default stack. Keep the original test name and all refusal-order assertions intact. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * chore(deps): pin nixl-sys workspace source Manage the nixl-sys Git revision from the workspace dependency table and point the optional Linux transport dependency at houseme/nixl commit cc636c83f13d692e85b67e55aed092413d16fb41. Allow the reviewed source in cargo-deny and refresh the lockfile, replacing the unmaintained bincode dependency with the fork's wincode graph. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * feat(rpc): authenticate msgpack peer capability Add an optional boot-epoch-bound HMAC capability proof and cache the verified per-peer observation without enabling any msgpack send policy. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * feat(grpc): bind peer capability to connection generations (#9433) * feat(grpc): track physical connection generations Observe every tonic physical reconnect through a stable custom connector while preserving existing TCP, TLS, HTTP/2, cache, and public channel behavior. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * feat(rpc): bind msgpack capability to connections Scope authenticated msgpack observations to channel identity and physical connection generation so transparent reconnects require a fresh proof without enabling the send policy. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: zhi22915 <qiuzgang@gmail.com> * feat(rpc): guard stale generations before dispatch Reject generation-bound requests before inner transport call or first payload frame when tonic readiness observes a different physical connection, while leaving ordinary mutations unguarded until the send-policy follow-up. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * feat(rpc): add per-peer msgpack rollout gate Add the default-off peer-capability environment gate, cached evaluation, fixed-cardinality send-decision metrics, and rollout constraints for stable peer-affine connections. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * feat(rpc): apply per-peer msgpack send policy Capture one capability decision per eligible RPC, bind peer-mode requests to boot and connection generations, and rebuild at most one dual-write request only after a locally proven pre-dispatch rejection. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(rpc): verify msgpack peer canary evidence Add a strict three-phase four-node evidence verifier with raw Prometheus and workload receipts, adversarial tests, script-test wiring, and the operational manifest contract. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(rpc): align batch read manifest encoder Match the BatchReadVersion compatibility manifest to the request-owned encoder expression used by the production send path. Restore the owning ECStore source guard while preserving wire and runtime behavior. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(rpc): orchestrate msgpack peer canary Run the fixed mixed/all-new/rollback four-node matrix with prebuilt images, real workload and readback, raw Prometheus capture, strict manifest generation, and adversarial fake integration tests. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(rpc): verify canary image and telemetry identities * test(rpc): bind canary evidence provenance Scope canary metrics to one injected cluster identity and bind candidate, baseline, and per-phase running containers to immutable image IDs and exact build revisions. Reject foreign-cluster metrics, stale revision labels, same-image tags, and phase image mismatches. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(table-catalog): accept borrowed multipart guard calls Count the exact borrowed bucket/key guard call introduced by UploadPart target ownership while preserving the four-production-call contract. Cover the borrowed spelling in both the positive fixture and the test-only false-positive regression. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com> Co-authored-by: overtrue <anzhengchao@gmail.com> |
||
|
|
3cee9c154b |
perf(grpc): attribute rebuilds and bound bulk responses (#9420)
* perf(grpc): attribute rebuilds and bound bulk responses Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(grpc): attribute rebuild success after publication Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * feat(obs): add exact HTTP/2 ping timeout diagnostics Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(multipart): run refusal matrix on large stack Run the real-store completion refusal matrix through the shared 32 MiB test harness so its deep async storage future does not overflow libtest's default stack. Keep the original test name and all refusal-order assertions intact. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * chore(deps): pin nixl-sys workspace source Manage the nixl-sys Git revision from the workspace dependency table and point the optional Linux transport dependency at houseme/nixl commit cc636c83f13d692e85b67e55aed092413d16fb41. Allow the reviewed source in cargo-deny and refresh the lockfile, replacing the unmaintained bincode dependency with the fork's wincode graph. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * feat(rpc): authenticate msgpack peer capability Add an optional boot-epoch-bound HMAC capability proof and cache the verified per-peer observation without enabling any msgpack send policy. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * feat(grpc): bind peer capability to connection generations (#9433) * feat(grpc): track physical connection generations Observe every tonic physical reconnect through a stable custom connector while preserving existing TCP, TLS, HTTP/2, cache, and public channel behavior. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * feat(rpc): bind msgpack capability to connections Scope authenticated msgpack observations to channel identity and physical connection generation so transparent reconnects require a fresh proof without enabling the send policy. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com> |
||
|
|
8196603a76 |
fix(iam): authorize delegated service account creation (#9408)
* fix(iam): authorize delegated service account creation * docs(iam): clarify explicit grants for custom administrator policies * fix(iam): include service account delegation in admin wildcards * style(policy): format delegated authorization test cases * fix(iam): keep delegated authorization and replication consistent * fix(ci): include delegated account test in E2E selections |
||
|
|
1e62cbaeaf |
perf(ecstore): integrate safe sync and allocator diagnostics (#9428)
* feat(diagnostics): restore allocator and runtime metrics Port the missing live-byte accounting and serving-runtime observations from |
||
|
|
fd8dc41f0c |
feat(ecstore): add file-sync durability tier (#9422)
* refactor(ecstore): split durability sync capabilities Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * refactor(ecstore): classify durability barriers Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * feat(ecstore): add file-sync durability tier Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(storage): harden durability docker validation Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(storage): isolate durability PUT benchmarks Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(storage): expose file sync grouping controls Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: zhi22915 <qiuzgang@gmail.com> |
||
|
|
645bb63809 |
feat: S3-over-RDMA with NIXL and cuObject transports (#9394)
* feat: S3-over-RDMA with NIXL and cuObject transports A signed S3 request with an empty body names a registered client buffer; the server moves the object bytes with one-sided RDMA (NIXL/UCX, or NVIDIA cuObject through the cuobject crate) instead of the HTTP body. Internode shard reads and writes can also move over NIXL. Applied onto main from #9305 (head |
||
|
|
5f9e5d62df |
feat(obs): measure remote rename field bytes (#9417)
* feat(obs): split PUT commit and remote rename timing Measure the app commit-owner scheduling gap and split remote rename client preparation into compatibility encoding, client acquisition, and request digest stages. Keep the timers behind the existing detailed PUT diagnostics gate. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * bench(filemeta): measure inline rename RPC encoding Compare JSON compatibility, msgpack, and dual encoding for metadata-only and representative inline FileInfo payloads used by remote rename requests. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(bench): use exact inline rename shard fixture Model the 100 KiB EC12 inline data as one rounded data shard plus its HighwayHash header, and report metadata-only throughput as operations. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * feat(obs): measure remote rename field bytes Record detail-gated JSON and msgpack field lengths after successful remote rename request encoding so msgpack-only rehearsals can prove sender behavior. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(scanner): preserve partial carry drain window Use the production drain window for real partial-bucket checkpoints so CI storage latency cannot truncate source-cache persistence. Align the certified partial-cycle assertions with carried-value semantics while retaining mixed-coverage and final convergence checks. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com> |
||
|
|
247aecf7b8 |
fix(health): bound quorum probes and readiness observations (#9410)
* fix(health): bound quorum probes and record timeout observations Collect fresh local and remote observations concurrently and finish once each configured set has sufficient storage and lock quorum evidence. Validate configured peer identities and disk slots before counting votes. Apply the cluster deadline to cache and singleflight waiting, retain flight ownership through timeout publication, and record timeout observations once. Cover slow peers, unavailable quorum, identity validation, cancellation, cache ownership and compatibility with focused regressions. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * perf(health): coalesce probes and count quorum incrementally Share the completion generation with overlapping uncached requests while retaining fresh observations for later requests and bounded flight ownership. Build validated topology thresholds once and count unique disk and lock votes incrementally instead of rescanning collected inventories. Honor the existing inventory metrics flag through RPC and storage owners. Health probes omit operation metric snapshots while retaining fresh disk identity, capacity and runtime checks. Move owned inventories across local aggregation layers and preserve the full-metrics administrative APIs. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(health): cover failed uncached flight recovery Cover a later waiter sharing its overlapping failed round before an independent request starts a fresh successful observation. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * perf(health): group lock membership in one endpoint pass Group configured lock members by set in one pass and reject impossible set counts before allocation. Retain per-set thresholds and add a bounded malformed-topology regression. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(health): publish startup topology in gating fixture Publish the shared four-disk fixture's endpoint topology before initializing disks, matching storage startup. Cluster health probes can then validate fresh quorum observations while the readiness test exercises S3 admission publication. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com> |
||
|
|
fc22c11d1a |
feat(obs): split PUT commit and remote rename timing (#9416)
* feat(obs): split PUT commit and remote rename timing Measure the app commit-owner scheduling gap and split remote rename client preparation into compatibility encoding, client acquisition, and request digest stages. Keep the timers behind the existing detailed PUT diagnostics gate. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * bench(filemeta): measure inline rename RPC encoding Compare JSON compatibility, msgpack, and dual encoding for metadata-only and representative inline FileInfo payloads used by remote rename requests. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(bench): use exact inline rename shard fixture Model the 100 KiB EC12 inline data as one rounded data shard plus its HighwayHash header, and report metadata-only throughput as operations. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com> |
||
|
|
c132329961 |
fix(scanner): preserve usage convergence across bounded cycles (#9397)
* feat(usage): record bucket provenance and complete observations * fix(scanner): preserve usage progress across bounded scan cycles * docs(scanner): explain usage provenance and bounded convergence * chore(scanner): correct requeuing spelling in runtime guidance * fix(scanner): route usage contracts through domain facades * fix(usage): keep admin projection futures sendable * fix(scanner): expose endpoint layout in production facade * fix(scanner): preserve checkpoint ownership during budget drain * test(scanner): remove redundant fixture clones * test(ecstore): update Windows rename publication calls * fix(ci): restore scanner test exports and lint assertions * test(scanner): preserve production drain for real checkpoints * fix(scanner): retire obsolete work without clearing responsibility * test(table-catalog): follow DeleteObject guard delegation --------- Co-authored-by: Hauser Zhi <housemecn@gmail.com> |
||
|
|
3c59e4f306 |
fix(kms): tolerate Vault reads that lag the client's own writes (#9406)
* fix(kms): tolerate Vault reads that lag the client's own writes A Vault or OpenBao node that answers reads from its own copy (an OpenBao standby, a Vault Enterprise performance standby) can serve the state from before a write for a short while after acknowledging it, and can refuse a write it is able to reject from that copy without forwarding it. - Create a KV2 key in one create-only write that carries usage, description and tags, instead of writing the record and reading it back to attach them. - Pause with jittered backoff before re-reading after a lost check-and-set write, and allow five attempts instead of three, in both backends. - Remember for five seconds what this client last wrote or deleted at each record and re-read an answer that is older. The last answer is returned once the attempts are spent, so this only delays a read. - Retry a Transit key delete that is refused because the deletion switch is not visible yet. * docs(kms): describe running the Vault backends against OpenBao * fix(kms): keep the remembered write version from moving backwards Two writes of one record by the same client can have their acknowledgements processed out of order. Recording the lower version last made it the floor again, so a read served from that older version was accepted. The marker is now updated atomically and only raised within a record's lifetime; a write after this client's own delete starts the count again. |
||
|
|
8d5faa5750 |
fix(ecstore): persist restartable format bootstrap authority (#9359)
* fix(ecstore): persist restartable format bootstrap authority Persist all-drive creator plans before format publication and resume exact deployment and drive slots after interrupted fresh formation. Consume authority durably before startup publication and validate regular control files on full and streamed reads. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * refactor(ecstore): finalize format bootstrap once Order bootstrap retirement before initialized identity publication, preserve established expansion preflight repair, and require followers to observe committed topology and complete identities. Publish bootstrap controls through one authenticated atomic RPC on the dedicated fsync lane. Keep cancellation-safe cache ownership in the native operation and retain interoperable replacement healing. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(ecstore): fence anchored format publication retries Select the durable first-slot plan before fanout and complete immutable anchored plans across retries. Retain physical-root namespace ownership through native publication, retirement and cache invalidation, rejecting conflicting or retired control records. Reuse main's unary RPC lifecycle recorder for validated outcomes and exact request, byte and cancellation accounting. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(test): align Windows and test-util compilation gates Match physical publication-hook tests to their non-Windows provider. Compile pool-capacity overrides with their test-util consumers, and keep alias-list mutation inside the Unix branch. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(ecstore): target native format publication paths Co-authored-by: houseme <4829346+houseme@users.noreply.github.com> * style(rpc): format merged request imports Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com> Co-authored-by: Chris An <anzhengchao@gmail.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: houseme <4829346+houseme@users.noreply.github.com> |
||
|
|
ef6af77026 |
feat(heal): add bounded MRF management and streaming audits (#9399)
* feat(heal): add bounded MRF management and streaming audits Publish lightweight responsibility summaries and expose authenticated, identity-bound cluster administration without reading object payloads. Stream audit-only reads while retaining staged verified bytes and full target readback for migration. * test(admin): keep MRF coverage within gateway boundaries Exercise owned MRF handlers through the shared admin test seam and keep wire-level authentication assertions in the router tests, without introducing another direct s3s consumer. * test(e2e): complete MRF lifecycle lock fixture RPC * docs: clarify integrity job resume refusals Explain that a failed lock acquisition does not prove a live worker, and require job-status reconciliation before retrying an unknown request outcome. * test(admin): include MRF cluster routes in route matrix Keep the exhaustive admin route matrix aligned with the four registered cluster management endpoints, including the concrete node and responsibility ID probe. |
||
|
|
0fde0f14a0 |
Revert "fix(ecstore): isolate unavailable local drives during startup (#9353)"
This reverts commit |
||
|
|
f6d64bc1fb |
fix(ecstore): isolate unavailable local drives during startup (#9353)
* fix(ecstore): isolate unavailable local drives during startup Keep missing local endpoints in their configured slots and initialize healthy local drives before applying the existing format and service quorums. Protect unformatted Linux URL endpoints from writes to the system filesystem, validate legacy admission, and retry missing local slots during format waits. Refs rustfs/rustfs#9350 Refs rustfs/backlog#3174 Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * refactor(ecstore): prepare local drives before registry publication Prepare local disks with bounded concurrency outside inventory locks and publish validated batches under per-instance writer coordination. Preserve existing registrations on failed or cancelled full initialization, reuse current-root handles, and withdraw stale reopened slots. Unify initial-format and reconnect publication, retain raw and explicit-context constructor contracts, and move filesystem queries into owned native jobs. Centralize format validation and reject special format files before startup writes. Refs rustfs/rustfs#9350 Refs rustfs/backlog#3174 Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * chore(ecstore): tighten formatted-error ratchet after refactor Drop the three removed runtime registration call sites from the shrink-only baseline. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test: align drive fixtures with startup admission Expect the disk-scoped missing-root error and enable the existing directory test mode for the synthetic URL-based receiver fixture. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * refactor(ecstore): unify local drive admission and publication Share bounded preparation and pre-I/O membership snapshots across local startup and retry paths, with coherent registry and topology publication. Coalesce native startup preflight and preserve root and buffer ownership. Keep reconnect ID caches instance-scoped and retain admitted health monitors. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(ecstore): pin multipart index queue aliases to owner lifetime Derive the Linux index alias from the existing identity descriptor so a retired caller descriptor cannot redirect rebuild or reconnect queue lookup. Retain the original descriptor assertion and cover cross-disk alias reuse. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com> |
||
|
|
d37640fbb9 |
fix(grpc): record TLS setup failures and cancelled dial attempts (#9388)
* perf(protos): balance peer channels and synchronize TLS eviction Use bounded per-peer bulk cursors and shared TLS generation reads. Keep eviction and generation removal coherent with concurrent publication, and expose opt-in bulk transport tuning with checked capacities. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * feat(metrics): observe internode unary request lifetimes Record client attempts through errors and cancellation, preserve the published server-duration family, and add gated activity and completion metrics. Cache enabled instruments after recorder publication while retaining startup duration recording. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(perf): make internode gRPC experiments reproducible Reset phase-owned settings before applying overrides, separate lifecycle experiments, and provide a bounded loopback workload with independently reported control and bulk latency. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(perf): isolate transport knobs and redact dry runs Add single-parameter P0 presets with separate artifacts while preserving the legacy combined default. Mask credential arguments in dry-run output without changing actual dispatch, and document fleet stop barriers and measurement boundaries. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * feat(observability): qualify gRPC windows and trace shutdown Reject stale, incomplete or maintenance-active measurement evidence using producer timestamps and independent process identities. Preserve raw inputs, bind evidence hashes, and exercise failure paths through the script entry point. Record HTTP/2 graceful, child-join and TLS reloader retirement phases without changing shared deadlines, join ownership or unclean-shutdown marker policy. Document RPC coverage, fixed-window behavior and separate maintenance workloads. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(perf): add authenticated ReadAll and fixed-rate Ping probe Exercise production remote-disk and signed control clients against task-owned temporary fixtures. Preserve all offered control arrivals, dispatch delay, payload validation and bounded raw request samples, with optional external measurement markers. Register probe regressions with the default package test discovery and document its telemetry, retry and storage-acceptance boundaries. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(perf): resolve RPC probe disks by explicit UUID Allow a complete non-nil disk UUID mapping to be installed through the existing remote-disk client API before fixture preflight. This supports test services that register local paths instead of the probe's transport URLs, without modifying server metadata. Validate mapping shape and assert the actual wire target in the loopback regression. Keep preflight diagnostics limited to the numeric disk-error classification. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * docs(perf): reseed temporary RPC fixtures after restart Separate startup-cleaned RPC temporary files from confirmed S3 durability fixtures. Revalidate readiness and disk identity before reseeding the probe after recovery. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(server): cancel unfinished TLS handshakes during shutdown Cancel pre-request TLS acceptance when the listener retires so silent peers cannot retain graceful watchers beyond the shared drain budget. Keep established TLS/H2 response draining and original child joins intact. Add real TCP/TLS shutdown regressions and document fresh native OTLP observation fences and exec-confirmed diagnostic test units. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * perf(grpc): reuse bulk keys and fix IPv6 TLS verification Reuse bounded per-peer slot keys and retain the existing cache identities for larger pools. Delegate custom-CA certificate names to tonic's URI parser and cover real IPv6 control/bulk TLS connections with a wrong-name rejection regression. Classify ReadVersion failure boundaries while preserving error totals, raise the bounded raw probe budget, and align the Linux-only rename test helper with its caller's platform condition. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(grpc): keep eviction race behind cache helpers Pause eviction on the owned TLS-generation lock and inspect the channel through the common cache API. Assert lock ordering while both mutations are queued, then retain the replacement-generation assertion after they complete. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(grpc): load native trust and preserve mTLS client identity Select explicit private trust or platform roots, then attach the published client identity for either mode. Build the TLS connector on the blocking pool under the existing acquisition deadline. Cover real control/bulk TLS connections, required client authentication, private-root scope and queued configuration timeout without late connection establishment. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(grpc): account for TLS setup failures and cancelled dials Own explicit dial metrics from validated endpoint setup through connection completion. Record TLS preparation failures and acquisition cancellation once while keeping peer-health decisions in the connect-result branches. Cover malformed client identity, queued configuration cancellation and successful coalesced dials, and document the metric scope. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com> |
||
|
|
c43e415b09 |
feat(server): serve ListBuckets and HeadBucket on the gateway stack (#9296)
The walking skeleton of the gateway edge, behind the gateway-stack cargo feature and RUSTFS_S3_STACK=gateway. rustfs-gateway inside the RustFS binary serves ListBuckets and HeadBucket end to end and answers every other S3 operation 501 NotImplemented. A default build carries neither the stack selection nor the wrapper: its request path is unchanged. - One per-operation unit: impl Served for dto::Op with a metric label, an authorize without a default body, and an execute. The only impl Handler is the blanket one over Served (access phase, authorize, count, execute, one error mapping). authorize calls the function the legacy access hook calls. - One table laid out per family (ten family files named after the migration batches); it registers the handlers and is the whole early gate. - A shared access phase used by both edges, fed on the gateway edge from the gateway's verdict. - Stored bucket names are materialised under the gateway floor only, so names the AWS grammar refuses are listed as before; HeadBucket's legacy edge builds its input the same way until the gateway re-pin (rustfs/gateway#1610). - With the gateway selected the legacy service receives exactly what the legacy router claims (extension routes, object lambda, control plane). - A start-up line names the stack the mounted service answers with. - The release-boundary guard reads feature closures from cargo metadata. Squashed from gw/T2.5-gateway-stack at |
||
|
|
ce9d0b153e | fix(heal): retain legacy MRF responsibility after physical repair (#9391) | ||
|
|
ef79dcbe19 |
ci: conformance and client-matrix lanes against both S3 stacks
Acceptance lanes T3.4 (rustfs/backlog#2775) and T3.5 (rustfs/backlog#2776): .github/workflows/gateway-acceptance.yml runs the rustfs/gateway conformance corpus (--profile rustfs) and client matrix (ci/compat/run_matrix.sh --external) against the candidate binary on RUSTFS_S3_STACK=legacy and =gateway, one server per stack. The suites are checked out at the gateway rev Cargo.toml pins. Nightly schedule and workflow_dispatch only. - Each stack must be observed: the start step writes `ready` only when /health/ready answers while its own process is alive and the server's server_starting event names the requested stack (scripts/dual_stack.py stack); otherwise `did not start: ...`. Summaries print the observed stack. - Verdicts come from files the run leaves on disk (startup record, stack evidence, liveness after the corpus, exit codes, report.json, matrix.json), never from an earlier step's exit status. - Conformance: the rustfs profile describes the gateway edge, so only the gateway stack is judged (scripts/check_conformance_rulings.py against .config/conformance-rulings.toml). Red: an unruled failure, a ruled case failing differently from its ruling's `failure`, a stale ruling, and a skip on the server's own answer (endpoint not answering, refused fixture). The legacy run is an unjudged reference: it must serve, stay up and complete. - Client matrix (scripts/compat_matrix_report.py): per stack, red on a `fail` or `sut-unregistered` cell, a client that could not be installed, or an unfinished matrix; legacy is the baseline and every legacy pass must pass on gateway. - The gateway leg and the stack comparison are continue-on-error, report-only until T2.10. Not built: no re-pin (write cases need a gateway rev with --allow-external-writes plus that flag on the lane's run line); no legacy rulings; no use of the runner's own --rulings ledger (stale rulings do not block there); no call to the gateway's check_compat_matrix.sh (it does not fail `fail` cells or clients that never ran); no JUnit (the pinned runner writes a raw U+0001); no install cache; toolchain versions copied from the gateway's client-matrix.yml at 7915d069. Tests: --self-test of both checkers in make script-tests, 40 tests, 31 negative. Mutations, each red: unruled failure ignored (test_an_unruled_failure_is_red); stale only when passed (test_a_ruling_on_a_skipped_or_absent_case_is_stale); did-not-start green (test_a_server_that_did_not_start_is_red_and_says_why); swallowed runner exit (test_a_swallowed_exit_cannot_hide_a_failed_case); exit 3 accepted (test_an_environment_exit_is_red); legacy judged or tallied (test_the_legacy_reference_is_counted_never_judged); dead server green (test_a_server_that_died_during_the_corpus_is_red); endpoint and fixture skips not red (test_a_skip_on_the_endpoint_not_answering_is_red, test_a_skip_on_a_refused_fixture_is_red); ruling on id only (test_a_ruled_case_failing_differently_is_red); unknown verdict (test_an_unknown_verdict_is_refused); stack not compared (test_a_server_of_the_other_stack_is_red); no stack evidence (test_ready_without_stack_evidence_is_red); failed cell, skipped client, swallowed matrix exit (test_a_failed_cell_is_red, test_a_client_that_could_not_be_installed_is_skipped_never_passed, test_a_missing_manifest_is_red_even_when_the_exit_was_swallowed); superset gate (test_a_legacy_pass_lost_or_absent_on_gateway_is_red, test_a_gateway_superset_of_the_baseline_is_clean_and_its_extra_passes_are_listed, test_diff_without_both_manifests_is_red); diffs (test_diff_lists_changed_and_absent_cases_only, test_diff_without_both_reports_compares_nothing). Trial runs on rustfs/rustfs#9368: 43264289490, 43325101234. Gateway stack did not start (gateway stack is not assembled yet, T2.5); legacy reference completed, 140 of 890 cases executable against an external endpoint; legacy matrix 13 x 14: pass 121, fail 0, client-unsupported 61, sut-unregistered 0. Not verified: the stack observation and liveness record in CI (exercised locally under bash -eo pipefail with a stand-in server and main's dual_stack.py, both directions); a scheduled run; a diff with gateway content. |