Skip to content

test(storage): cover bounded compressed range reads - #170

Merged
houseme merged 1 commit into
mainfrom
houseme/test-compressed-range-9582
Nov 26, 2026
Merged

houseme merged 1 commit into
mainfrom
houseme/test-compressed-range-9582

Conversation

@houseme

@houseme houseme commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Related Issues

Covers the regression reported in rustfs/rustfs#9582 and tracked in rustfs/backlog#3372.

Summary

Add STOR-136 to the storage suite and the candidate-bound validation catalog as source-procedure.storage.stor-136. The single-node, single-disk case checks a moderately compressible 512 MiB single PUT and a two-part upload with a 64 MiB final part and a short tail. It verifies HTTP 206, the exact Content-Range and exact plaintext at early offsets and at the tail. It checks the stored file sizes to confirm that both objects were compressed, then requires a positive process read-byte delta below 16 MiB per 16 KiB response. The Linux counter includes buffered reads, so a warm page cache does not hide a full-part scan.

Verification

  • Shell syntax, source procedure selection, catalog and migration review checks passed. The focused migration and source procedure suite ran 25 passing tests.
  • Exercised the range assertion in a local Linux container with a matching response and six negative cases covering status, Content-Range, body, process restart, zero reads and excessive reads.
  • Candidate deployment on the managed validation nodes remains pending.

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant