mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
* volume: serve decoded bytes for a range over a compressed needle A Range with Accept-Encoding: gzip got Content-Encoding: gzip and a slice of the compressed bytes, which a decoding client cannot read. The range is over the stored file's decoded bytes, so pass gzip through only for a whole read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * seaweed-volume: serve decoded bytes for a range over a compressed needle Mirrors the Go volume server: a Range with Accept-Encoding: gzip got Content-Encoding: gzip and a slice of the compressed bytes. Pass gzip through only for a whole read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * seaweed-volume: HEAD of a compressed needle reports the served length HEAD answered a compressed needle from its meta: the stored gzip length with no Content-Encoding, whatever the request accepted. Go reads the payload and reports what the GET would send: the decoded length, or the gzip length with Content-Encoding: gzip for a whole read that accepts gzip. Read a compressed needle in full on HEAD too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * test/volume_server: range and HEAD over a compressed needle Both volume servers serve a gzip-accepted range decoded, and HEAD reports the length the matching GET would send. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * seaweed-volume: decode every gzip member of a compressed needle Go's gzip reader reads concatenated members; GzDecoder stopped after the first, so a range over such a needle saw a shorter body and length. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Volume Server Integration Tests
This package contains integration tests for SeaweedFS volume server HTTP and gRPC APIs.
Run Tests
Run tests from repo root:
go test ./test/volume_server/... -v
If a weed binary is not found, the harness will build one automatically.
Optional environment variables
WEED_BINARY: explicit path to theweedexecutable (disables auto-build).VOLUME_SERVER_IT_KEEP_LOGS=1: keep temporary test directories and process logs.
Current scope (Phase 0)
- Shared cluster/framework utilities
- Matrix profile definitions
- Initial HTTP admin endpoint checks
- Initial gRPC state/status checks
More API coverage is tracked in /Users/chris/dev/seaweedfs2/test/volume_server/DEV_PLAN.md.