mrhhsg opened a new pull request, #71236:
URL: https://github.com/apache/doris/pull/71236

   ### Background
   
   Cloud query spill uses the object-storage filesystem supplied by a vault. 
The previous configuration value and object layout named S3 and used the BE 
address in object keys.
   
   ### What problem does this PR solve?
   
   Issue Number: None
   Related PR: #70474 (original combined patch), #68032 (remote spill feature)
   PR Type: Enhancement
   
   Problem Summary:
   
   Name the storage mode after its role, not a provider, and avoid embedding a 
BE address in spill keys. Test the existing FE current-query column order and 
behavior for rows from older peers without changing the runtime schema.
   
   ### Details
   
   - **Before and after:** A remote spill store uses a random identifier in its 
root, stable for the lifetime of that store and unchanged on vault rebinding. 
Each file still keeps the filesystem it was created on.
   - **Configs and defaults:** Use `spill_storage_type=remote` in cloud mode; 
`local` remains the default. `s3` is rejected, not accepted as an alias and not 
silently redirected to local spill. The `spill_s3_*` setting names remain 
unchanged.
   - **Impact on existing users:** Change BE configs that set `s3` to `remote` 
before restart. The bucket lifecycle rule should still cover 
`<vault-prefix>/spill/` so old address-based remnants expire. FE column 
positions and protocol remain unchanged.
   - **FE coverage:** Assert the existing legacy column positions, appended 
remote columns, and zero defaults when remote columns are absent from peer rows.
   
   ### Testing
   
   - Clang-format 16 for BE files, build hygiene, and `git diff --check` passed.
   - ASAN BE UT not yet completed on this split head; no test result is 
claimed. Command: `ENABLE_PCH=off USE_LIBCPP=OFF BUILD_TYPE_UT=ASAN 
./run-be-ut.sh --run --filter=SpillFileS3Test.* -j20`.
   - Targeted FE UT invoked with `./run-fe-ut.sh --run 
'org.apache.doris.common.proc.CurrentQueryStatisticsProcDirTest,org.apache.doris.httpv2.rest.manager.QueryProfileActionTest'`;
 result pending. Compile-time assertions confirmed the mode predicate 
recognizes `remote` and not `s3`.
   - No live-object-storage, rolling-upgrade or SQL regression result is 
claimed.
   
   ### Release note
   
   In cloud mode, set `spill_storage_type=remote` for object-storage query 
spill; the previous `s3` value is rejected. Remote spill object keys no longer 
include the BE IP or port.
   
   ### Check List (For Author)
   
   - Behavior changed: Yes (see Details); FE behavior is unchanged.
   - Does this need documentation: Yes; migration is noted here, and separate 
remote-spill documentation is deferred.
   - Pre-submission status: Partially verified; see Testing.
   
   ### AI Disclosure
   
   - Tool: Codex
   - Generated: Patch extraction, targeted adaptations, and description.
   - Human review: Pending author review.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to