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>
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>
* 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.
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.
* feat(vector): integrate S3 Vectors catalog and APIs
Add scoped Vector resources, managed Lance storage, IAM checks, and
Gateway REST JSON operations with compatibility and recovery tests.
* fix(vector): adapt owned requests and preserve native quota errors
* test(ci): exercise Vector KMS archive consumers
* feat(vector): add maintenance and recovery workflows
* test(multipart): assert typed quota refusal causes
Verify the retained quota cause and its current and limit values alongside the existing refusal-order assertions. Remove the retired authentication compatibility entry after the main rebase.
* fix(vector): move maintenance dispatch guard ownership
Retain the namespace guard in the returned maintenance owner. Synchronize Gateway dependencies for corpus recording and format the existing audit test in its external module.
* feat(vector): add shared pagination sessions
* fix(vector): bound managed request and catalog futures
* test(vector): adapt managed fixtures to Gateway request envelopes
* test(vector): verify maintenance across uniform deployments
* test: simplify SSE-C counting and Catalog fixture ownership
* fix(test): propagate owned device validation errors
* fix(auth): bound early authorization futures
* feat(vector): complete resource pagination and bucket retirement
* fix(vector): harden bucket lifecycle, retirement, authz, and layering
Preserve continuous bucket incarnation fencing across Vector bucket Catalog parent initialization, map deleted-bucket races during DeleteVectorBucket to NotFoundException, and re-evaluate IAM, resource policies, and ABAC bucket tags inside the storage bucket lock across all five Vector bucket mutations.
Scale used-bucket Catalog retirement proof, plan, and execution linearly across multi-resource multi-page histories, sweep uncommitted pre-authority page artifacts before rewriting authority records, enforce manifest completeness and immutable delete-intent source-copy identity, and allow same-name recreation over v4 deleted Vector tombstones.
Make ListVectorBuckets and ListIndexes resilient to concurrent deletions with single-pass bucket authorization and bounded sparse-prefix scan budgets, preserve literal plus characters when decoding UntagResource tagKeys query parameters to match Gateway SigV4 canonicalization, and normalize operation-scoped Kms*Exception codes across all 21 S3 Vectors APIs.
Extract ManagedLanceObjects into app::vector_usecase::managed_objects, inject background node admission into Vector maintenance startup to eliminate the app-composition cycle, and widen scripts/check_layer_dependencies.sh to detect inline reverse-layer crate paths while recording the 12 pre-existing non-Vector inline edges from main in scripts/layer-dependency-baseline.txt (backlog#1834) with zero Vector exemptions.
* chore(vector): remove Batch 1 dead code and test debug residue
* chore(vector): remove Batch 2 dead test code and gate test-only APIs
* refactor(vector,iam): simplify dead branches and pass-through wrappers
* fix(object,test): bound PutObject futures and cover reconciled routes
* feat(vector,object,connect): activate S3 Vectors and fix CI regressions
* test(object,vector): fix copy future size check and vector dispatch test
Set explicit trace level on 60 object write, delete, and multipart span call sites across the facade, store, set, disk, and Swift protocol layers. Lifecycle and admin spans keep their existing INFO level.
This avoids recording bucket and object span fields on hot paths at the default INFO log level while leaving error events and lifecycle observability unchanged.
Route single-pool Store::prepare_get_object_reader calls through SetDisks::prepare_get_object_reader_metadata with the request range and MetadataReadPurpose::GetObjectReader, and keep conditional read context active during DefaultObjectUsecase reader preparation. This restores QuorumSelected metadata cache hits, verified_inline_body reuse, and metadata early-stop regressed by #9680 while preserving pre-unwrap SSE-KMS authorization.
* fix(ecstore,sse): close rio-v2 interop gaps on imported drive sets
A rio-v2 build that takes over a drive set written in the compatible format could not start once a KMS was configured, and several object reads and writes disagreed with what the other server stores or expects.
- Startup: the IAM migration now opens KMS-sealed IAM records. The record path is part of the key context, so the migration callback receives it, and the context text is escaped the way it was sealed.
- GET of a single-part encrypted object: whether an object holds one cipher stream per part is read from the marker the object records, not guessed from the ETag length. A sealed ETag is longer than an MD5 and sent these objects down the per-part path, which failed authentication.
- ETag: a sealed ETag is opened for GET and HEAD responses.
- HEAD: the public SSE headers are derived from the stored sealing metadata, and the KMS key id is answered in ARN form on GET and HEAD.
- Content length: an object sealed under an object key records no plaintext size when it is a single-part upload; the size is derived from the stored size of its parts.
- Compression: the compression and actual-size keys are also written in the casing the other server looks up.
- User metadata is stored under the x-amz-meta- prefix so it comes back as user metadata on both sides. Keys starting with "internal-" keep their bare form, because the prefixed form falls into a namespace reads hide.
- Replication: the metadata comparison skips the prefixed user metadata, which the target's HEAD answers without the prefix and which therefore never compared equal.
- ListObjectVersions and the metadata listing extension report the plaintext size of encrypted and compressed versions. This is the only intended behaviour change in a default build.
Three differences stay as they are: the other server cannot read SSE-S3 objects this build writes, listings do not open sealed ETags, and an SSE-KMS write is refused when only a static master key is configured.
Each fix has a regression test that fails without it.
* build: rename cargo feature rio-v2 to m-compatible
The feature selects the stored layout a build reads and writes, not a version of the stream crate, so it is named after that. The rename covers the feature key in every crate that forwards it, all cfg attributes, the CI job ids, names and artifacts, the CI gate and its tests, the validation scripts, the compat compose build argument, the debug launch configuration and the documentation.
The crate rustfs-rio-v2, its path and module name, the tests named after that reader implementation, and the backend_name() strings are unchanged. There is no alias: a build that passed --features rio-v2 must pass --features m-compatible.
No behaviour change in either build.
* refactor(ecstore,sse): select the build variant at one point per module
The m-compatible feature was tested at about 220 places, most of them inside function bodies. Each area that differs between the two builds now has a pair of modules exporting the same functions, and one place that picks between them, so call sites no longer name the build.
- ecstore: io_support/rio.rs selects rio/{native,m_compatible}.rs for the stream readers and writers, the compression scheme and index encoding, and the write-side encryptors. object_api/readers.rs selects readers/{native,m_compatible}.rs for range plans, the multipart layout, plaintext sizes that are not recorded, empty parts and the decompressed stream.
- sse: the sealed-ETag branch moves out of core/read.rs into core/keying/, where this crate keeps its build-specific code, and decrypt_kms_sealed_config is exported in both builds.
- utils: the four checks in metadata_compat.rs become one predicate.
- Tests that exist in only one build move to tests/native.rs and tests/m_compatible.rs child modules, gated once where they are declared. The set of test names is unchanged apart from one rename.
The attribute now appears 95 times; in ecstore it is left on the two selection points and on tests. crates/ecstore/AGENTS.md records the convention.
scripts/error-other-format-baseline.txt changes because that ratchet counts per file: 11 existing call sites moved from object_api/readers.rs (19 to 8) into the new readers/m_compatible.rs (11). The total stays at 564.
No behaviour change in either build. docs/architecture/minio-file-format-compat.md gains a table of where the variant lives and a corrected statement of what a default build can read.
* fix(s3): compare read preconditions with the answered ETag
A HEAD or GET of an object whose stored ETag is sealed answers with the ETag clients were shown for it, but If-Match and If-None-Match were still compared with the stored form. A client sending back the ETag HEAD answered with got 412 for If-Match and no 304 for If-None-Match.
- HEAD and GET compare the ETag conditions with the ETag the response carries, and a 304 carries that ETag.
- The storage layer ends a conditional read on the stored ETag before a body is opened, and cannot await the answered one. For a stored ETag in sealed form it no longer ends the read on an ETag condition and leaves the decision to the request layer. Without this a matching If-Match ended the read with no body to answer with.
- A default build stores no sealed ETag: the form test is constant false there and its behaviour is unchanged.
Tests: a round trip on a real store takes the ETag from HEAD and sends it back to GET and HEAD as If-Match and If-None-Match, and sends the stored form to show it matches nothing; unit tests cover the precondition helper, the storage-layer decision and the form test in both builds. With either half of the fix switched off the round trip fails.
* fix(s3): compare copy-source conditions with the answered ETag
x-amz-copy-source-if-match and x-amz-copy-source-if-none-match on CopyObject and UploadPartCopy were compared with the stored ETag of the source. For a source whose stored ETag is sealed that is not the ETag a read answers with, so the ETag from HEAD was refused with 412.
Both compare the ETag a read of the source answers with, as GET and HEAD do since the previous commit. It is resolved after the source's key authorization and only when the request names an ETag. A default build stores no sealed ETag and is unchanged.
Tests: on a real store, a customer-key source with a sealed stored ETag is copied with the ETag from HEAD as copy-source-if-match through both operations; the stored form as if-match and the answered ETag as if-none-match are refused. The fixture is shared with the read round trip. With either call site switched back the test fails.
* fix(s3): answer a date-conditioned GET 304 with the answered ETag
A GET that carried only If-Modified-Since resolved no answered ETag, because the lookup was limited to requests naming an ETag, and its 304 fell back to the stored ETag. For an object whose stored ETag is sealed the 304 then carried a different validator than HEAD answers with.
GET resolves the answered ETag for every conditional request, so a 304 carries it whichever condition produced it. HEAD already did. An unconditional GET still skips the lookup, and a default build stores no sealed ETag and is unchanged.
Tests: the sealed-ETag round trip takes Last-Modified from HEAD, sends it back as If-Modified-Since to GET and HEAD, and requires the 304 of both to carry the ETag HEAD answered with. With the lookup limited to ETag conditions again, the GET half fails.
---------
Co-authored-by: overtrue <anzhengchao@gmail.com>
The io_uring driver thread counts a read out of `in_flight` before it
drops the completed entry, and that entry's owner still holds a clone of
the read's memory reservation. Two background-memory tests waited only
for `in_flight == 0` and then asserted the exact budget figure, so a
driver thread preempted between the decrement and the drop left one
chunk's reservation visible. A merge-queue run failed that way with
13311 instead of 8192: 5119 is one 4096-byte O_DIRECT chunk at offset 17
with 512-byte alignment.
Wait for the budget itself to settle (bounded) before each exact
assertion, including after the last slice of a single-operation read is
dropped, where the owner shares the returned allocation's receipt. The
exact assertions are unchanged.