Commit Graph

8648 Commits

Author SHA1 Message Date
overtrue d2c11493f0 Verify workers without bucket watches reject stale cross-cycle coverage 2026-12-03 08:41:48 +08:00
overtrue 4bf46eaa5f Exercise cold ranges under active writes and wide on-disk scanner checkpoints 2026-12-03 08:41:48 +08:00
overtrue c3858ea719 Exercise scanner acceptance on physical cache and admission boundaries 2026-12-03 08:41:48 +08:00
overtrue efa74cc6a7 Account for scanner checks and durable site resync admission 2026-12-03 08:41:48 +08:00
overtrue a889989ab4 fix(lock): order object PUT votes before contention splits quorum 2026-12-03 08:41:47 +08:00
overtrue 35a340500a fix(lock): order contended writer retries before collecting quorum votes 2026-12-03 08:41:32 +08:00
overtrue b810191bf7 fix(gateway): pin the SigV2 HTTP date compatibility fix 2026-12-03 08:40:38 +08:00
overtrue 95e4aa1b71 fix(replication): validate user destinations separately from site rules 2026-12-03 08:40:38 +08:00
overtrue 5c653b0ce9 fix(ecstore): persist every reported versioned batch delete marker 2026-12-03 08:40:38 +08:00
Chris An bacd330baf fix(ci): align architecture import, RPC/scanner tests, and stack sizes (#9877) 2026-12-03 06:16:35 +08:00
Matin Mojazab Sanei bd8f831824 fix(kms): ignore directory entries in Vault Transit key listing (#9875) 2026-12-03 05:36:35 +08:00
GatewayJ 7c74186666 fix(table-catalog): allow valid no-op and root snapshot commits (#9768)
* fix(table-catalog): allow valid no-op and root snapshot commits

* fix(table-catalog): reject snapshots that omit live parent files

* fix(table-catalog): reject data additions in delete snapshots

* fix(table-catalog): guard root delete publication on existing branches

* fix(table-catalog): preserve branch history for new snapshot chains

* fix(table-catalog): check staged snapshot history across commits
2026-12-03 05:36:29 +08:00
Seungwon Lee 460838f691 fix(s3): report storage class in multipart upload listings (#9835)
* test(s3): check storage class on pending multipart uploads

Check the listed class while the upload is still open so the existing
retry and resume scenario covers the response that clients use to find
their pending uploads.

* fix(s3): report storage class in multipart upload listings

Clients that require StorageClass cannot read a nonempty upload list
when the field is missing. Carry the stored class from the metadata
already read for the listing and apply the same default as ListParts.
2026-12-03 04:34:34 +08:00
Hauser Zhi 7648acba97 feat(ecstore): add an experimental per-disk fsync worker cap (#9852)
Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-03 04:34:27 +08:00
Chris An c06a02ce4b fix(ecstore,deps): restore MRF absence probe compile and update pin-project-lite (#9872) 2026-12-03 02:38:00 +08:00
Hauser Zhi 485c719ec0 perf(ecstore): reuse bounded shard proof streams (#9868)
* perf(ecstore): reuse bounded shard proof streams

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(ecstore): avoid redundant proof replica work

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* fix(ecstore): stop aligned ranges at the last requested stripe

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

---------

Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-03 00:37:26 +08:00
Hauser Zhi 560ee032c7 perf(quota): defer published v1 quota settlements (#9867)
Hand off the terminal v1 ledger update after successful object
publication when its bytes are already charged. Bound the detached
work per instance and keep its retry on the shutdown tracker.
Preserve synchronous settlement for shrinking writes and saturation.

Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-03 00:37:20 +08:00
Hauser Zhi 9d30470316 fix(ecstore): preserve background delete discovery progress (#9866)
* fix(ecstore): preserve background delete discovery progress

Keep the local scan and its in-flight result across scheduling windows.
Run bounded native steps under per-disk background admission, and defer
genuinely stalled pages so sweeps on healthy drives can proceed.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(ecstore): walk delete discovery directories by descriptor

Open the Linux scan root beneath the pinned mount and descend relative
to each retained parent directory. Skip ordinary files using directory
entry types and validate evidence at its canonical path.

Acquire the bucket lease before admitting background disk I/O. Return
the page and continuation when a running walk stops cooperatively.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* fix(ecstore): retain delete discovery work across sweeps

Keep active discovery pages when hint pressure requests another sweep.
Let unopened retries cover their original scopes without bypassing
backoff, and finish older cursors before revisiting the same bucket.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* fix(ecstore): yield discovery during bucket identity reads

Resolve the bucket incarnation as part of the in-flight page. Drive
the bounded metadata read independently so its guard can be released
while discovery rotates across disks.

Keep the resolved identity attached to the page before admitting any
discovered recovery hints.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

---------

Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-03 00:37:13 +08:00
Hauser Zhi 0e326157cc fix(heal): retire held MRF writes with bounded absence probes (#9831)
* fix(heal): explain why durable MRF proof is unavailable

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* fix(heal): retire held MRF writes with bounded absence probes

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(heal): reduce held MRF probe and scan overhead

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(heal): isolate MRF retirement reads from durable admission

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(heal): batch exact MRF receipt matching

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* fix(ecstore): use the namespace contract in MRF probes

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(heal): build MRF checkpoint records in one pass

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* test(heal): pin durable MRF proof rejection semantics

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(heal): share bucket lookups within durable MRF dispatch

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* ci(fuzz): isolate harness dependency groups during builds

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* ci(fuzz): keep group artifacts available across reruns

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* ci(fuzz): validate target bindings by job

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

---------

Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-03 00:37:03 +08:00
GatewayJ f86e7069d9 fix(vector,policy): align S3 Vectors protocol, dispatch, auth, cursors (#9826)
* fix(vector,policy): align S3 Vectors protocol, zero-alloc HTTP dispatch, IAM admission, and cursor HMAC

- Eliminate per-request Box::pin allocations on General S3 / S3 Tables traffic in VectorDispatch, delegate poll_ready, enforce Authorization header precedence over query parameters, and add startup-cached RUSTFS_S3VECTORS_ENABLE kill-switch + maintenance-off notice (#43a, #44, #55).
- Return JSON 403 AccessDeniedException on unsupported Keystone identities and map gateway framing/timeout errors while preserving native RequestTimeTooSkewed and ExpiredToken codes (#6, #43b).
- Verify active credentials upfront and gate missing-bucket/index 404 responses behind IAM and bucket-policy evaluation; populate inherited bucket sseType and kmsKeyArn ABAC condition keys on CreateIndex (#25, #27).
- Tighten Principal::has_wildcard and validate_vector_statement NotAction checks for S3 Vectors policies without affecting General S3, IAM, or S3 Tables policy evaluation (#22, #24).
- Support AES256 vector encryption via LocalSseDekProvider when external KMS is unconfigured (#56b).
- Sign ResourceListCursor with HMAC-SHA256 and bind full credential/session state into pagination_principal (#26, #28, #45).
- Return 404 NotFoundException from GetVectorBucketPolicy when unset, enforce PutVectorBucketPolicy (20 KiB), UntagResource (1..=50 tagKeys), and KMS_KEY_ARN bounds, raise ListIndexes scan budget to 12,800, and emit operation-accurate fieldList validation paths and quota error mappings (#30, #31b, #47a, #48b, #49a, #49c).

* fix(vector): preserve policy denials and modeled request boundaries

Honor cross-service NotAction exclusions on explicit denies and decode presigned service scopes consistently with the gateway. Use the modeled KMS ARN and tag-key constraints, and bind list cursors to verified credentials and the shared deployment secret.

* fix(vector): isolate readiness from S3 and S3 Tables

Wait on the selected Vector service instance before calling it. Preserve the inner S3 service readiness and verify that S3 and S3 Tables requests proceed while Vector capacity is pending. Check exact AWS principals on Vector bucket policy writes and retain the modeled UntagResource list behavior.
2026-12-03 00:36:56 +08:00
GatewayJ 7c15d2cc71 fix(ecstore,s3vectors): preserve rebalance revisions and multipool CAS (#9819)
* fix(ecstore,s3vectors): preserve logical body revision across rebalance, serialize multipool CAS, and isolate S3 metrics

- Preserve x-rustfs-internal-logical-body-revision-v1 across pool rebalance/decommission and same-key metadata-only CopyObject while stripping forged headers on ordinary writes/uploads (#3).
- Enforce multi-pool unversioned If-None-Match / If-Match CAS at post-body commit after an unlocked cross-pool pre-body fast-fail check, keeping concurrent reads unblocked during streaming uploads (backlog#2074, #8).
- Include s3tables and s3vectors in DECOMMISSION_META_PREFIXES (#5) and omit unconfigured default s3vectors_maintenance from persisted config blobs (#10).
- Add 60s NTP skew tolerance + monotonic timestamp clamping on maintenance heartbeats/retirement receipts (#9), preserve catalog error categories (#18), and log first_error/manual_review (#19).
- Release ManagedObjectMultipartSession mutex across part uploads (#37b), exempt ephemeral query-results/*.session cursors from user bucket quota (#47a), and suppress ordinary S3 rustfs_io_metrics on internal managed Vector I/O (#56a).

* fix(ecstore): preserve conditional writes and managed quota accounting

* fix(ecstore): unify multi-pool object publication

* fix(ecstore): reduce the size of the read-repair lock guard

* test(ecstore): isolate object read failures during decommission

* fix(ecstore): validate multipart replacements across pools
2026-12-03 00:36:49 +08:00
唐小鸭 1967dec141 fix(replication): replay deletes deferred by a held source lock (#9787)
A live delete replication that cannot take the source object lock was dropped: the worker discarded the outcome, and the two lock skips before the target call were only logged at debug. A bulk delete keeps its key locks until the whole batch commits and keeps running after its client disconnects, so a retried bulk delete of the same keys made earlier markers lose the five second lock wait and never reach the target, or reach it without the result being recorded on the source.

Report how an attempt ended. When a source-side lock or read kept it from running, or from persisting its result, the worker journals the delete so the periodic MRF replay drives it again. Target failures stay with the persisted state and the scanner as before, so an unreachable target does not fill the journal. The three source-deferred skips now log at warn.
2026-12-03 00:36:41 +08:00
唐小鸭 5ee681679a fix(ecstore): honor usage-watch exemption for status write-backs (#9823)
The disk-level exemption for replication status writes checked the keys of the FileInfo handed to update_metadata. Real write-backs pass the whole version metadata (etag, content-type, ...) plus per-target reset stamps and target version ids, so the exemption never applied and every write-back revoked the bucket's usage watch.

Decide from what the update changes instead: compare the stored versions before and after the merge under the mutation lease and take usage ownership only when something other than replication status-class keys differs. An empty data-movement acknowledgement, which every metadata update stamps, is not treated as a change.
2026-12-02 23:35:16 +08:00
cxymds 123f801671 fix(scanner): restore initial and certified usage snapshots (#9864)
* fix(scanner): resume durable bucket progress across handoffs

* fix(scanner): persist completed bucket usage and initial progress

* fix(admin): restore the persisted scanner snapshot views
2026-12-02 23:35:09 +08:00
Hauser Zhi 94ea64359a perf(get): keep wakeups with pending disk reads (#9863)
Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-02 22:17:49 +08:00
Hauser Zhi 4f0063da8b fix(obs): export usage from validated scanner observations (#9858)
* fix(obs): export usage from validated scanner observations

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* docs(obs): document usage observation coverage

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* fix(obs): verify live topology for projected usage totals

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(obs): share one usage observation per cluster tick

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(obs): hand off fresh usage without waiting for capacity

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(obs): batch bucket quota metadata reads

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(obs): publish storage snapshots without per-point copies

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(obs): prepare fixed descriptors once per bucket collection

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(obs): stop admitting cold quota reads after snapshot expiry

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

---------

Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-02 22:17:42 +08:00
Hauser Zhi b71942cf26 fix(admin): report native listing admission independently of GET (#9859)
Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-02 21:15:18 +08:00
RustFS ad9b5e29e6 fix(s3,ecstore): mitigate high-concurrency 503 cascades and 500 leaks (#9857)
* fix(s3,ecstore): mitigate high-concurrency 503 cascades and 500 leaks

Eliminate HTTP 500 InternalError leakage under internode RPC saturation, isolate high-concurrency S3 HTTP/503 root causes with machine-parseable telemetry, and mitigate quorum/lock/breaker cascades across distributed 4x4 clusters:

1. S3 503 root-cause attribution & Prometheus telemetry:
   - Propagate `x-rustfs-503-subcause` (via `classify_s3_503_subcause` and `scope_503_subcause` alongside `x-rustfs-error-cause`) across S3 and readiness responses when returning HTTP 503 (`ServiceUnavailable`, `SlowDown`, `SlowDownRead`, `Busy`).
   - Export `rustfs_s3_503_responses_total{code, subcause}` on `/rustfs/v2/metrics` via `rustfs-io-metrics` without per-object cardinality explosion.

2. Eliminate HTTP 500 leaks under transient internode transport pressure:
   - Map `StorageError::BackendUnavailable` and `StorageError::BackendTimeout` to S3 503 `SlowDown` instead of falling through to 500 `InternalError`.
   - Stop evicting shared `tonic::Channel` connections on RPC deadlines or non-broken-transport errors when a peer remains active (`is_host_considered_healthy`), preventing mid-flight `Status::cancelled` collateral damage across concurrent shards and lock batches; map transient `Status::cancelled` on `RemoteDisk` to `DiskError::FaultyRemoteDisk`.
   - Classify `InternodeHttpErrorKind::Unknown` with `operation().is_some()` in `is_unavailable_internode_http_error` and check `UnexpectedEof` / `hyper::Error::is_closed()` / `is_canceled()` after the body-phase guard in `rustfs-rio` `HttpReader` so pre-body pooled keep-alive resets retry cleanly without hiding mid-body stream aborts.

3. Mitigate distributed write-quorum, lock, and circuit-breaker cascades:
   - Enable internode bulk/control gRPC channel isolation by default (`DEFAULT_INTERNODE_CHANNEL_ISOLATION = true`), raise control concurrency (`64 -> 256`), bulk pool size (`2 -> 4`), HTTP/2 stream window (`1 MiB -> 4 MiB`), connection window (`2 MiB -> 16 MiB`), and internode HTTP pool idle capacity (`16 -> 128`, `90s` timeout).
   - Cap distributed lock backoff ceiling (`80ms -> 25ms` base ceiling) and scope anchor-voter pre-acquisition serialization strictly to exclusive writer retries (`attempt > 1`) so first-attempt single-object PUTs run full parallel quorum fanout while contended hot-key writers still prevent livelock.
   - Tune circuit-breaker failure threshold (`5 -> 20`), sliding window (`10s -> 5s`), open cooldown (`5s -> 1s`), and half-open probe concurrency (`3 -> 8`) to stop self-amplifying 5s cluster-wide 503 blackouts after sub-second bursts.

Fixes https://github.com/rustfs/backlog/issues/3402

Signed-off-by: RustFS <hello@rustfs.com>

* fix(ecstore,lock,s3): address PR review findings and add tests

- Split drive-scoped mark_faulty (self.health.completed_ops()) from host-scoped tonic::Channel eviction (host_completed_ops(&self.addr)) in RemoteDisk so sibling progress on the same peer does not keep a stalled drive Online, with regression test sibling_drive_progress_preserves_host_channel_without_suppressing_stalled_drive_fault.
- Restrict anchor_serialized early return in DistributedLock::acquire_lock_quorum_once_inner strictly to definitive lock contention (is_definitive_lock_contention) so anchor timeouts or open request-breakers fall through to remaining voters, with regression test exclusive_retry_fans_out_to_remaining_voters_when_anchor_times_out_or_breaker_opens.
- Pass LockRequestAdmission into RemoteClient::record_request_timeout and require the active probe_generation before escalating an existing backoff window, with regression test late_pre_backoff_timeout_after_expiry_does_not_escalate_without_failed_probe.
- Record rustfs_s3_503_responses_total(ServiceUnavailable, readiness_pending) in service_not_ready_response without double-counting and assert both header and counter in service_not_ready_response_preserves_observable_contract.
- Wire matching ObjectWriteStalled / ObjectReadStalled traffic-stall overlays into ClusterWrite and ClusterRead health reports while keeping StartupFinalizationPending scoped to node readiness.

Signed-off-by: RustFS <hello@rustfs.com>

---------

Signed-off-by: RustFS <hello@rustfs.com>
2026-12-02 20:53:48 +08:00
Chris An d8e2353825 fix(ci): prevent fuzz build OOM and stabilize workspace/http3 tests (#9856)
* fix(ci): prevent fuzz build OOM and stabilize workspace/http3 tests

* fix(fuzz): split fuzz build codegen units and bound dep opt-level/lld threads
2026-12-02 19:48:58 +08:00
hector c3fb1aa4a0 ci: compile the nixl feature only on RDMA path changes (#9851)
* ci: compile the nixl feature only on RDMA path changes

Add a path-filtered workflow so the optional nixl build runs on pull
requests and main pushes that touch NIXL/RDMA sources, and on manual
dispatch. It reads the hosted Rust cache and does not save it.

Co-authored-by: hector <majinghe@users.noreply.github.com>

* ci: run the nixl compile check on the rdma runner

Use the bare self-hosted label and a cache key that is not shared with
the ubuntu-latest lanes.

Co-authored-by: hector <majinghe@users.noreply.github.com>

* ci: register the path-filtered nixl compile workflow

Record the event-driven workflow in the validation registry and match
future nixl RPC modules with the same path glob as the feature check.

Co-authored-by: hector <majinghe@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: hector <majinghe@users.noreply.github.com>
2026-12-02 19:48:51 +08:00
Rasmus Haslund 615e55825e fix(s3): echo multipart checksums in ListParts (#9814)
Carry the upload's checksum algorithm and type and each part's recorded checksums through PartInfo and render them in the ListParts response.
2026-12-02 16:08:17 +08:00
Hauser Zhi 2537596a4f chore(deps): refresh Cargo dependencies (#9842)
* chore(deps): refresh Cargo dependencies

Update TAR and Windows bindings, preserve Windows file disposition flags, and retain the recorder version shared with Kafka and Gateway RDMA. Refresh the standalone fuzz dependency graph.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* chore(deps): upgrade metrics to 0.25

Route metrics 0.24 consumers through the 0.25 implementation in both workspaces. Verify that legacy metrics share the recorder and that dependency resolution cannot silently restore a second recorder.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* chore(deps): update RustFS Kafka to 1.5.0

Resolve both Kafka packages at 1.5.0 and drop the unused metrics facade patch from the fuzz workspace. Keep the main workspace facade for the remaining Metrique dependency.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* fix(metrics): disambiguate the doctest extern names

Alias the 0.25 implementation so rustdoc can link it alongside the 0.24 compatibility facade. Preserve the shared recorder and dependency lockfile.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* chore(deps): update http to 1.6.0

Align the workspace and standalone fuzz manifests and lockfiles on http 1.6.0.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* fix(deps): refresh Cargo dependencies and preserve HTTP values

Refresh registry constraints and lockfiles. Preserve legacy opaque ETags and response headers with byte validation while retaining POST and signed override validation.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

---------

Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-02 16:06:38 +08:00
Hauser Zhi 6b014ec215 feat(capacity): read usage directly on dedicated mounts (#9840)
* feat(capacity): read usage directly on dedicated mounts

Allow operators of dedicated filesystems to use block usage for background
capacity estimates. Reuse the existing blocking scan and cache update
paths so a successful probe establishes the per-disk baseline.

Refs: rustfs/rustfs#9837
Refs: rustfs/backlog#3399

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* refactor(capacity): verify whole mounts before reading usage

Share mount eligibility across a refresh and read allocated blocks
through the checked directory descriptor. Rebuild a complete per-disk
baseline when the local disk set changes.

Refs: rustfs/rustfs#9837
Refs: rustfs/backlog#3399

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* fix(capacity): discard stale topology on bounded refresh

Reconcile a scheduled full refresh against the topology it scanned.
Represent baseline completeness with the per-disk map and compute
aggregate totals in one pass.

Refs: rustfs/rustfs#9837
Refs: rustfs/backlog#3399

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* fix(capacity): restrict direct reads to isolated filesystem types

Use the filesystem type from the existing descriptor-based statfs
call to keep shared-pool accounting out of the direct mount path.
Cover directory fallback and symlinked mount roots.

Refs: rustfs/rustfs#9837

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

---------

Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-02 16:06:30 +08:00
Hauser Zhi a368c669a2 feat(bench): record write latency in preflight queue samples (#9850)
Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-02 16:06:24 +08:00
hector e0b548fff0 fix(docker): switch docker-compose-simple.yml to single-disk mode and /health/ready (#9848)
* fix(docker): switch docker-compose-simple.yml to single-disk mode and /health/ready

- Use single-node single-disk layout (RUSTFS_VOLUMES=/data with a single rustfs_data volume) so docker compose up works out of the box without triggering same-device strict disk topology errors
- Switch healthcheck to /health/ready on port 9000 with --connect-timeout 3 --max-time 5 (decoupled from console toggle)
- Pin volume-permission-helper to alpine:3.24 with network_mode: none and skip redundant recursive chown -R when ownership is already 10001:10001
- Allow overriding S3/Console host ports and credentials via env vars, and configure ulimits.nofile=65535

Signed-off-by: xiaomage <jhma@rustfs.com>

* fix(docker): align RUSTFS_OBS_LOG_DIRECTORY to /logs in docker-compose-simple.yml

Signed-off-by: xiaomage <jhma@rustfs.com>

---------

Signed-off-by: xiaomage <jhma@rustfs.com>
2026-12-02 11:21:56 +08:00
Seungwon Lee 364dec4b0d fix(nix): provide native libraries and gateway sources (#9834)
The locked Rust build hooks require system zstd and AWS-LC. Gateway
includes generated tables across crate boundaries that Cargo vendoring
separates. Reuse the copy vendored with gateway-core to build offline.
2026-12-02 00:15:19 +08:00
cxymds 152d9a39cc fix(lock): reap expired local leases every second per shard (#9836) 2026-12-02 00:13:17 +08:00
Hauser Zhi 9fe640ff3f perf(scanner): validate durable directory progress once (#9833)
* perf(scanner): validate durable directory progress once

Reuse the verified directory manifest for both listing and compacted progress. Compare saved bucket progress once per local turn and skip the initial snapshot when remote durable progress cannot be reported.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(scanner): bound directory progress lookups by path

Match checkpoint progress within each parent path while retaining exact replica and manifest checks. Search ancestor paths for compacted coverage and keep the direct path for single records.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(scanner): skip redundant snapshot coverage checks

Use the sealed frontier when available and validate only compacted receipts whose ranges can cover a missing frontier.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(scanner): reuse frontier digest at leader handoff

Validate the saved frontier once during checkpoint preparation and reuse its digest when retaining or migrating an accepted receipt. Preserve exact scope checks and validate legacy digest domains before migration.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

---------

Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-02 00:13:11 +08:00
Hauser Zhi ba453ce15e feat(bench): guard managed cluster ABBA runs (#9832)
Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-02 00:13:05 +08:00
Hauser Zhi aa8820e87a fix(ecstore): bind shard proof cache to part identity (#9829)
* perf(ecstore): avoid rechecking authenticated shard proofs

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* fix(ecstore): bind shard proof cache to part identity

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

---------

Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-02 00:12:58 +08:00
Hauser Zhi 82b9897641 fix(quota): reclaim stranded v2 shard credits (#9812)
* fix(quota): reclaim stranded v2 shard credits

Recheck the requester after upgrading to an exclusive allocator lock.
Reclaim whole donor grants through ordered, fenced ledger writes and
publish the requester's reservation under the same allocator guard.
Use accounted bucket usage when quota admission is denied.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(quota): use one allocator read for warm v2 admission

Keep bootstrap and reservation in one admission flow. Persist each
empty requester before issuing its first regular grant, and issue
only its required growth at the start of the epoch. Avoid writes for
denied lazy requests and skip unnecessary donor normalization.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(quota): reuse recovered v2 credit under shared locking

Probe orphan owners outside the allocator and shard locks. Apply
recovery and a fitting reservation in one shard write. Drain any
commit-started orphan publication before accounting its live bytes.

Fund donor-backed refills with the exact shortfall so other shards
can draw on the returned excess, including after interrupted donor
preparation.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(quota): plan v2 donor reclaim before fencing shards

Overlap bounded read-only donor lookups under the exclusive allocator.
Fence and reread only when candidate grants can cover the requester.
Keep incomplete plans off disk and prefer the smallest single grant
that satisfies the deficit.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* chore(deps): update sha2 to 0.11.3

Replace the yanked 0.11.2 resolution while preserving the existing
0.10 dependency line and the rest of the locked dependency graph.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* chore(deps): refresh workspace dependency pins

Align the workspace requirements for sha2, aws-sdk-s3, and sysinfo
with the resolved versions. Refresh the compatible transitive pins
selected by Cargo.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* test(ci): give deep storage regressions a 4 MiB stack

Use the existing nextest stack setup for the eight real-store tests
reported to overflow Linux libtest threads. Match each test exactly
in the local and CI profiles.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* chore(deps): use published rustfs-uring 0.4.0

Replace the Git revision with the crates.io release containing the
same completion-owner and atomic-update implementation. Keep fault
injection limited to Linux test builds.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* chore(ci): propose renewal of three RustSec exceptions

Set the proposed expiration to 2027-02-01T23:59:59Z for:

- RUSTSEC-2026-0542: humantime =2.4.0
- RUSTSEC-2026-0543: chrono =0.4.45
- RUSTSEC-2026-0555: chrono-tz =0.10.4

Keep the existing approval metadata. The security gate still requires
independent maintainer approval for the new expiration.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

---------

Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-02 00:07:37 +08:00
Hauser Zhi adc7a7abaa perf(scanner): reuse checkpoint commit revisions (#9809)
* perf(scanner): reuse checkpoint commit revisions

Use the ETag from each successful conditional write as the next
checkpoint revision. Recover ambiguous results and their revisions
from the same byte-verified read. Probe only an unknown backup and
require a bucket reload when the primary commit has no revision.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* perf(scanner): stream checkpoint body comparisons

Share an exact bounded comparison for ambiguous writes and reused
backup pages. Stop at the first mismatch and require EOF before
using a read-back to confirm a committed revision.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* test(ci): align storage fixtures with workspace test budgets

Give affected real-store tests the existing bounded stack. Reserve
the test runner for each twelve-drive reconstruction fixture without
changing its deadline. Assert full metadata fanout and the typed
post-quorum timeout for a paused disk.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* ci(fuzz): bound instrumented Cargo build concurrency

Limit the selected fuzz harness build to two Cargo jobs, matching
the workspace build budget on the same runner class. Keep the
sanitizer, selected targets and smoke verdict in force.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

---------

Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-02 00:07:25 +08:00
GatewayJ 768b7cf58a fix(s3): check RDMA GET sink bounds before IO and defer PUT prefetch (#9801)
Validate S3 read preconditions and RDMA client buffer bounds before opening segmented GET sinks or cold-fill producers, map CuObjectError::TokenTooSmall to InvalidRange, defer RDMA PUT read-ahead until the body stream is polled, and start the local NIXL agent when RUSTFS_INTERNODE_DATA_TRANSPORT=nixl is configured standalone.
2026-12-02 00:07:07 +08:00
Ramakrishna Chilaka 00a1158e02 perf(s3): move owned ObjectInfo strings in ListObjects and ListObjectVersions pages (#9793)
* perf(s3): move owned ObjectInfo strings in ListObjects and ListObjectVersions pages

* perf(s3): encode metadata listing paths in one pass

---------

Co-authored-by: overtrue <anzhengchao@gmail.com>
2026-12-02 00:06:48 +08:00
Hauser Zhi abef536caa fix(scanner): accept durable receipts across local epochs (#9830)
* fix(scanner): accept durable receipts across local epochs

Compare the signed checkpoint identity without requiring the worker and leader to share a process-local publication epoch. Keep the worker identity for observation validation and retain tier registry negotiation.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

* test(scanner): expose signed receipt regression evidence

Bind the signed receipt regression to the USAGE-23 native acceptance case.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>

---------

Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-12-01 16:32:38 +08:00
dependabot[bot] 092c865185 fix(deps): resolve RUSTSEC-2026-0620 and refresh dependencies (#9796) 2026-11-30 22:42:53 +08:00
Ramakrishna Chilaka 1aa042b2e3 perf(ecstore): cache bucket incarnation under guard and trim UploadPart head checks (#9791) 2026-11-30 22:42:39 +08:00
icediceice 8863d2ddd0 fix(quota): let v1 recounts survive concurrent writes (#9789)
A v1 hard-quota bucket under steady writes could stay full after deletes: deletes give no credit, and every recount was dropped when a reservation was pending at its seed or any writer saved the ledger during its walk. Zero-growth overwrites save the ledger too.

On a single-pool store a recount now stores a scan_seed token at its seed and remembers the seed balance minus pending growth. If the token survives, it publishes the scan plus all growth admitted since the seed. Only reserve and abort move the v1 balance, so the write path is unchanged and the result can only over-count. Pending reservations and the reap cursor are kept; reconcile_required is cleared only when no writer saved since the seed.

The recount now sums usage over walk_authoritative, so all versions of a key come from one metadata entry; the paged version listing could skip a suspended null overwrite that re-sorted ahead of its version marker.

A recount is scheduled on every denial whose growth fits the limit and when an admission crosses 90% of it. Admission compares in u128, so a stale balance near u64::MAX is a quota denial, not corruption.

Multi-pool stores and mismatched or missing ledgers keep the strict path, since pool moves publish versions without a reservation. scan_seed is omitted while idle, so the ledger format is unchanged for older nodes, and an older node's rewrite drops it, which discards the in-flight recount. The vector maintenance quota observer accepts scan_seed in its strict ledger schema.

Co-authored-by: icediceice <icediceice@users.noreply.github.com>
2026-11-30 21:17:55 +08:00
Hauser Zhi baa09338ea fix(scanner): keep checkpoints usable without backup quorum (#9808)
Refresh the primary checkpoint revision even if the best-effort
backup cannot be read. Keep an unknown backup revision out of CAS
writes and avoid probing it when reacquiring the cache lease.

Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
2026-11-30 21:17:30 +08:00
Ramakrishna Chilaka 1d3499b72f perf(s3): trim clones and HeaderMap copies in DeleteObjects and ListMultipartUploads (#9794) 2026-11-30 20:50:31 +08:00