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>
(cherry picked from commit 0961259974)
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.
Add deterministic unit tests exercising a single-pool non-elected bootstrap observer through identity establishment, pending-identity waiting, and V3 pool.bin convergence without latching write_blocked, plus negative controls ensuring initialized-missing and corrupt identities latch RecoveryRequired permanently.
Refs: rustfs/backlog#2384
Treat HealTaskStatus::Timeout as terminal completion so admin heals persist a terminal receipt and remove their pending root-heal intent instead of permanently blocking subsequent non-forceStart admin heals with HTTP 409 AlreadyRunning.
Refs: rustfs/backlog#3376
* fix(ecstore): pass managed argument when forwarding live_store make_bucket
* fix(server): use NotifyState::Other for Linux systemd MONOTONIC_USEC reload state
* fix(s3,ecstore): exclude vector prefix from owner read fast path and bound make_bucket stack frame
* chore(deps): refresh Cargo dependencies
Refresh compatible workspace dependencies, align the fixed zstd adapter, and keep the vendored HTTP/2 Expect backport active.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* chore(deps): upgrade DataFusion and TAR dependencies
Adapt S3 Select to DataFusion 56 while preserving field depth and function error contracts. Update TAR fixtures for the decoder API and hold compatible Hotpath and NIXL HTTP versions.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* fix(tests): restore Iceberg and IAM test compilation
Pass Arrow metadata arrays directly and update Vector IAM fixtures to use ArcSwap while preserving policy state restoration.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* fix(ci): select only Cargo workspace members
Keep excluded path crates in the dependency graph for reverse impact analysis. Require the corrected plan contract and fall back to full workspace validation when the trusted base planner is older.
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(ecstore): reject incomplete erasure reconstruction
Require exact shard geometry and complete data for zero parity. Reject
missing decode backends and enforce the source quorum for verified
reconstruction while preserving recoverable exact-quorum reads.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* perf(ecstore): streamline erasure reconstruction
Validate shard geometry and presence once at the reconstruction boundary.
Skip payload inspection for complete data and use direct indexed access
when extracting recovered legacy shards. Preserve quorum, parity
verification, and HotPath attribution for verified reads.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* perf(ecstore): avoid parity copies in verified reads
Compare surviving parity against regenerated bytes without cloning or
overwriting the sources. Reuse the SIMD workspace for legacy parity and
use one contiguous scratch buffer for modern parity. Still materialize
missing parity and reject inconsistent sources before stripe emission.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* chore(ci): shrink error formatting baseline
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* test(iam): use ArcSwap for policy plugin state
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* fix(ecstore): enforce empty shard quorum and stage parity
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>
Co-authored-by: RustFS <hello@rustfs.com>
Co-authored-by: Chris An <anzhengchao@gmail.com>
* feat(pools): add maintenance mode, config/preflight checks, and zero-downtime live hot-reload
* fix(admin): restrict pool check/preflight to DecommissionAdminAction and harden audit logging
* fix(pools): harden security, pending-commit retry convergence, cutover isolation, and subsystem handoff
* feat(gateway): bump rustfs/gateway pin to ac50e9af and mount pool hot-reload native routes
* style(ecstore): sort conditional import in local commit module
* fix(ecstore): replace Error::other(format!) in pool reload with stable typed errors
* test(pools): avoid literal PEM header in non-env config redaction test
* perf(obs): trace remaining hot data-plane spans
Extend the explicit trace-level rule to the remaining repetitive object, bucket, list, notification, rebalance, decommission, heal, and scanner spans. Together with the first commit, 126 call sites across 36 files now use trace; lifecycle and admin spans keep INFO.
This completes one consistent span-level policy for per-object and per-iteration paths without changing control flow, fields, or error handling.
* fix(ecstore): route test storage-api import through contracts
The prepared-reader test imported ObjectOperations directly from rustfs_storage_api, which violates the architecture migration rule requiring ECStore modules to route storage-api symbols through storage_api_contracts. Use the existing domain-level re-export, matching other tests in this module.