Repository navigation
fileservice: write to disk cache in S3FS.Write and Read - #12198
Conversation
2df487c to
276ef5d
Compare
fengttt
left a comment
There was a problem hiding this comment.
This change seems to be different from the issue mentioned in pr message.
ba76004 to
7df3089
Compare
The issue number is correct. |
fengttt
left a comment
There was a problem hiding this comment.
We replace all S3 cache to whole file? Don't we want some kind of config? What about AP cache, we said later it may need to cache all blocks of one column. What about metadata/zonemap, are they in a totally different cache system and not use disk cache at all?
I cannot tell from this change and not sure what we do.
The file service doesn't know about AP, blocks/column/zonemap. They're handled at the call site. |
fileservice: add FileCache fileservice: rename DiskCache.entryDataFilePath to pathForIOEntry fileservice: sketch FileCache impl for DiskCache fileservice: remove S3FS.writeDiskCacheOnWrite fileservice: add DiskCache.writeFile fileservice: remove FileCache.GetFile; try get full file in DiskCache.Read fileservice: add DiskCache.SetFile tests fileservice: write to disk file cache in S3FS.write fileservice: fix testCachingFileService perfcounter: replace Disk.OpenFile with OpenIOEntryFile, OpenFullFile, CreateFile fileservice: write to disk file cache in S3FS.read
2208c31 to
54f5af2
Compare
…#12198) fileservice: add FileCache fileservice: rename DiskCache.entryDataFilePath to pathForIOEntry fileservice: sketch FileCache impl for DiskCache fileservice: remove S3FS.writeDiskCacheOnWrite fileservice: add DiskCache.writeFile fileservice: remove FileCache.GetFile; try get full file in DiskCache.Read fileservice: add DiskCache.SetFile tests fileservice: write to disk file cache in S3FS.write Approved by: @nnsgmsone, @zhangxu19830126
…#12198) fileservice: add FileCache fileservice: rename DiskCache.entryDataFilePath to pathForIOEntry fileservice: sketch FileCache impl for DiskCache fileservice: remove S3FS.writeDiskCacheOnWrite fileservice: add DiskCache.writeFile fileservice: remove FileCache.GetFile; try get full file in DiskCache.Read fileservice: add DiskCache.SetFile tests fileservice: write to disk file cache in S3FS.write Approved by: @nnsgmsone, @zhangxu19830126
## What type of PR is this? - [x] Test and CI ## Context The reproduced mechanism from #28898 is already fixed by #28918, and #28888 covers full-object pending-publication rereads. The daily full-object assessment identified a policy boundary that needs to remain explicit. PR #12198 intentionally made the default S3FS read a full-object read and enabled reuse through the disk-cache full-file artifact. A sparse row selection alone is not sufficient evidence to replace that default: legacy vector decoding still follows the whole-column path, and later projected columns can benefit from the same full object. ## What this PR does - Adds a disk-backed S3FS regression guard that verifies `Policy(0)` requests `[0, EOF)` while `SkipFullFilePreloads` remains an explicit bounded-range opt-in. - Adds legacy ObjectIO TopN sparse/dense/explicit-range coverage so legacy TopN does not accidentally inherit the chunked path range policy. - Does not change production code, the default cache policy, prefetch behavior, DiskCache admission/eviction, or SQL semantics. This is a follow-up safety guard, not a claim of an end-to-end Daily/Wiki performance improvement. ## Validation - `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=600s ./pkg/objectio` - `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=600s ./pkg/fileservice` - `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -race -count=1 -timeout=600s ./pkg/objectio` - `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -race -count=1 -timeout=600s ./pkg/fileservice` - `go vet -mod=readonly ./pkg/objectio ./pkg/fileservice` with the repository CGo include/link environment - `git diff --check` BVT: N/A. This change only adds internal FileService/ObjectIO regression coverage and does not change SQL behavior. Co-authored-by: XuPeng-SH <[email protected]>
…rigin#29017) ## What type of PR is this? - [x] Test and CI ## Context The reproduced mechanism from matrixorigin#28898 is already fixed by matrixorigin#28918, and matrixorigin#28888 covers full-object pending-publication rereads. The daily full-object assessment identified a policy boundary that needs to remain explicit. PR matrixorigin#12198 intentionally made the default S3FS read a full-object read and enabled reuse through the disk-cache full-file artifact. A sparse row selection alone is not sufficient evidence to replace that default: legacy vector decoding still follows the whole-column path, and later projected columns can benefit from the same full object. ## What this PR does - Adds a disk-backed S3FS regression guard that verifies `Policy(0)` requests `[0, EOF)` while `SkipFullFilePreloads` remains an explicit bounded-range opt-in. - Adds legacy ObjectIO TopN sparse/dense/explicit-range coverage so legacy TopN does not accidentally inherit the chunked path range policy. - Does not change production code, the default cache policy, prefetch behavior, DiskCache admission/eviction, or SQL semantics. This is a follow-up safety guard, not a claim of an end-to-end Daily/Wiki performance improvement. ## Validation - `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=600s ./pkg/objectio` - `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=600s ./pkg/fileservice` - `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -race -count=1 -timeout=600s ./pkg/objectio` - `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -race -count=1 -timeout=600s ./pkg/fileservice` - `go vet -mod=readonly ./pkg/objectio ./pkg/fileservice` with the repository CGo include/link environment - `git diff --check` BVT: N/A. This change only adds internal FileService/ObjectIO regression coverage and does not change SQL behavior. Co-authored-by: XuPeng-SH <[email protected]>
…rigin#29017) ## What type of PR is this? - [x] Test and CI ## Context The reproduced mechanism from matrixorigin#28898 is already fixed by matrixorigin#28918, and matrixorigin#28888 covers full-object pending-publication rereads. The daily full-object assessment identified a policy boundary that needs to remain explicit. PR matrixorigin#12198 intentionally made the default S3FS read a full-object read and enabled reuse through the disk-cache full-file artifact. A sparse row selection alone is not sufficient evidence to replace that default: legacy vector decoding still follows the whole-column path, and later projected columns can benefit from the same full object. ## What this PR does - Adds a disk-backed S3FS regression guard that verifies `Policy(0)` requests `[0, EOF)` while `SkipFullFilePreloads` remains an explicit bounded-range opt-in. - Adds legacy ObjectIO TopN sparse/dense/explicit-range coverage so legacy TopN does not accidentally inherit the chunked path range policy. - Does not change production code, the default cache policy, prefetch behavior, DiskCache admission/eviction, or SQL semantics. This is a follow-up safety guard, not a claim of an end-to-end Daily/Wiki performance improvement. ## Validation - `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=600s ./pkg/objectio` - `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=600s ./pkg/fileservice` - `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -race -count=1 -timeout=600s ./pkg/objectio` - `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -race -count=1 -timeout=600s ./pkg/fileservice` - `go vet -mod=readonly ./pkg/objectio ./pkg/fileservice` with the repository CGo include/link environment - `git diff --check` BVT: N/A. This change only adds internal FileService/ObjectIO regression coverage and does not change SQL behavior. Co-authored-by: XuPeng-SH <[email protected]>
What type of PR is this?
Which issue(s) this PR fixes:
issue #11569
What this PR does / why we need it:
fileservice: add FileCache
fileservice: rename DiskCache.entryDataFilePath to pathForIOEntry
fileservice: sketch FileCache impl for DiskCache
fileservice: remove S3FS.writeDiskCacheOnWrite
fileservice: add DiskCache.writeFile
fileservice: remove FileCache.GetFile; try get full file in DiskCache.Read
fileservice: add DiskCache.SetFile tests
fileservice: write to disk file cache in S3FS.write