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

   ## Summary
   - Normalize `Location` values inside `SpiSwitchingFileSystem` before 
delegating operations to the resolved SPI filesystem.
   - Normalize both source and destination locations for rename-style 
operations.
   - Extend `SpiSwitchingFileSystemTest` to cover OSS bucket endpoint paths 
such as `oss://bucket.endpoint/path`.
   
   ## Root Cause
   On master, the legacy `SwitchingFileSystem` has been replaced by 
`SpiSwitchingFileSystem`. The SPI wrapper used `LocationPath` to choose the 
underlying filesystem, but still passed the original `Location` to the 
delegate. For OSS bucket-domain-name paths, the lower object-storage parser 
treats the URI authority as the bucket, so `oss://bucket.oss-cn-.../path` can 
be interpreted as bucket `bucket.oss-cn-...` instead of `bucket`.
   
   ## Impact
   This keeps filesystem selection and delegated operation paths consistent. It 
protects Hive overwrite/cleanup/list/delete/rename flows when HMS stores OSS 
bucket endpoint locations.
   
   ## Validation
   - `./run-fe-ut.sh --run org.apache.doris.fs.SpiSwitchingFileSystemTest`
   


-- 
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