github-actions[bot] commented on code in PR #62342:
URL: https://github.com/apache/doris/pull/62342#discussion_r3083498115


##########
be/src/io/fs/packed_file_system.cpp:
##########
@@ -54,6 +91,11 @@ Status PackedFileSystem::create_file_impl(const Path& file, 
FileWriterPtr* write

Review Comment:
   `file.filename()` is not enough to tell whether this is the first segment on 
every supported remote path. `RowsetWriterContext::segment_path()` can call 
`StorageResource::remote_segment_path()` with `path_version == 1`, which 
produces `data/{shard}/{tablet_id}/{rowset_id}/{seg_id}.dat` (and V2 indexes 
end in `.../{rowset_id}/{seg_id}.idx`). On that path shape the basename here is 
only `1.dat` / `1.idx`, so `should_use_packed_writer()` falls through to 
`return true` and later segments still go through `PackedFileWriter`. That 
means the PR does not actually disable packed-file buffering for multi-segment 
cloud rowsets on this supported path version. Please derive the decision from 
the full path or explicitly handle the `path_version == 1` layout, and add a 
test for it.



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