* 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
* 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.
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>
* 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>
* 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.
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.
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.
* 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>
* 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>
* 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>
* 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>
* 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>
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.
* 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>
* 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>
* 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>
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.
* 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>
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>
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>
* fix(ecstore,rustfs): fix rolling restarts, health probe, and request_id
- Unpin STREAM_AUTH_PINNED_ENDPOINTS on authenticated peer boot_epoch
rotation (probed via signed Ping on legacy-downgraded streams) while
remaining fail-closed for unauthenticated downgrades under unchanged
epochs, fixing 1.0.8 -> 1.0.7 rollback stream-auth failures.
- Probe peer boot_epoch and re-sign replay scope headers on transient
internode gRPC Unauthenticated errors during same-version restarts.
- Propagate online_drives_strict onReadQuorum retry hints and treat
transient transport disconnects during quorum reads as retriable shard
unavailable errors instead of immediate 503 SlowDown.
- Evaluate live erasure set read/write quorums across local and remote
drives in /minio/health/cluster and /minio/health/cluster/read so a
2/4-node outage returns HTTP 503 instead of a false-healthy 200.
- Propagate S3 x-amz-request-id end-to-end across internode gRPC and
HTTP storage RPC boundaries for cross-node observability correlation.
Refs: https://github.com/rustfs/backlog/issues/3390
* fix(connect,release): raise symbol caps, compact 1GiB set, sync 1.0.8
- Raise GNU symbol-catalog budgets (aarch64-gnu 48 MiB, x86_64-gnu
56 MiB) in crates/connect-symbol-catalog to accommodate expanded
workspace symbol tables.
- Switch low-RAM (<= 2 GiB cgroup/host) CPU profile symbolizer fallback
to a compact Vec<(u64, u64, Box<str>)> sorted address table so 1 GiB
hosts never OOM during CPU profile symbolization.
- Synchronize workspace Cargo.toml, Cargo.lock, flake.nix, rustfs.spec,
and helm/rustfs/Chart.yaml versions to 1.0.8.
Refs: https://github.com/rustfs/backlog/issues/3390
* fix(filemeta,scanner,heal): stabilize xl.meta, MRF fairness, telemetry
- Sort HashMap entries deterministically before MessagePack encoding in
FileMeta::encode_to so healed and re-encoded xl.meta shards produce
identical byte layouts and HighwayHash/CRC checksums across nodes.
- Classify confirmed object absence in MRF heal execution as terminal
instead of looping recreate_failed retries, and enforce anti-starvation
fairness for Scanner and ReadRepair lanes under MRF High bursts.
- Expose executed heal counters by source (MRF, Scanner, ReadRepair) in
MRF status endpoints and export dirty_pending_buckets / scanner cycle
telemetry in scanner activity snapshots.
Refs: https://github.com/rustfs/backlog/issues/3390
* fix(ecstore): bound 3x4 SIGSTOP stalls with hedging and host fast-fail
- Hedge multi-pending shard reads and read_xl_meta quorum fetches across
remaining drives instead of stalling behind a single SIGSTOP'd node,
and bound post-quorum write/delete straggler grace windows.
- Record peer straggler timeouts into host fast-fail windows and apply
host fast-fail on read retries (including IgnoreFailure attempt 0) so
subsequent operations bypass hung peers immediately.
- Allow .rustfs.sys metadata read-repair staging under a shared lock so
a hung peer cannot hold an exclusive write lock for 10s across bucket
validation paths.
- Switch SetDisks::stat_bucket_with_quorum from join_all to
FuturesUnordered early-return on presence quorum or strict-majority
absence so bucket existence revalidation after TTL expiry never blocks
on a SIGSTOP'd peer.
Refs: https://github.com/rustfs/backlog/issues/3390
* test(ecstore): wire real-ECStore multipart DST cutpoints and SimDisk
- Wire opt-in DST crash cutpoints (MultipartBeforeQuorumRename,
MultipartMidQuorumRename, MultipartAfterCommitBeforeCleanup) directly
into SetDisks::complete_multipart_upload_inner and add transactional
part staging/commit support in DstSimDisk.
- Add real-ECStore deterministic crash-recovery tests verifying
all-or-nothing multipart visibility and convergent post-crash cleanup.
Refs: https://github.com/rustfs/backlog/issues/3390
* fix(ecstore,fuzz): fix test clippy lint and sync fuzz/Cargo.lock
- Replace index range loop over errs in 3x4 SIGSTOP metadata read test
with errs.iter().enumerate().take(4) to satisfy clippy --all-targets.
- Sync workspace crate versions to 1.0.8 in fuzz/Cargo.lock so --locked
fuzz harness checks succeed.
Update NIXL, cuObject, and S3-over-RDMA architecture documentation to match current Cargo feature flags, environment defaults, wire contracts, passive client-window invariants, and GPUDirect Storage cufile.json configuration.
Partition RemoteCache registrations by PeerRole (S3Client vs Internode), require signed SHA-256 metadata verification on internode NIXL RPCs, and carry signed nixl_offset on multi-segment shard writes so declared sizes are checked end-to-end.
* fix(ecstore): replace older null delete marker on suspended delete
When a versioning-Suspended bucket already has an older null delete
marker below a newer non-null version, a versionless DeleteObject or
DeleteObjects request sends a null marker write with empty replication
and purge state. FileMeta::delete_version_inner treats that shape as an
in-place replication write-back on the existing null delete marker,
leaving the old timestamp in place and keeping the newer version latest.
Detect the older null delete marker during the existing
check_null_version_object_lock_delete lookup (zero extra disk reads) and
prepend a plain null removal ahead of the new null delete marker inside
the same per-key delete_versions prepare/commit/rollback group so both
old and new drives apply the mutation identically during rolling
upgrades. Chunk recoverable and guarded delete_versions batches to keep
each disk RPC within the 1,000 group/mutation limit.
Fixes#9713
* test(ecstore): route replication state fixtures through bucket boundary
Prevent unclean-shutdown and non-replacement AutoHeal erasure-set tasks from recreating buckets deleted after the startup snapshot by validating live bucket incarnations under the lifecycle fence, mapping retired generations to BucketNotFound/StaleBucketIncarnation, and returning Ok(None) on missing buckets in ECStoreHealStorage.