gavinchou commented on code in PR #31144: URL: https://github.com/apache/doris/pull/31144#discussion_r1495329181
########## be/src/io/fs/s3_file_system.cpp: ########## @@ -381,11 +381,11 @@ Status S3FileSystem::upload_impl(const Path& local_file, const Path& remote_file local_file.native(), full_path(key))); } - auto file_size = std::filesystem::file_size(local_file); + auto size = handle->GetBytesTransferred(); LOG(INFO) << "Upload " << local_file.native() << " to s3, endpoint=" << _s3_conf.endpoint << ", bucket=" << _s3_conf.bucket << ", key=" << key - << ", duration=" << duration.count() << ", capacity=" << file_size - << ", tp=" << (file_size) / duration.count(); + << ", duration=" << duration.count() << ", capacity=" << size Review Comment: the word "capacity=" seem not accurate ########## be/src/io/fs/s3_file_system.cpp: ########## @@ -381,11 +381,11 @@ Status S3FileSystem::upload_impl(const Path& local_file, const Path& remote_file local_file.native(), full_path(key))); } - auto file_size = std::filesystem::file_size(local_file); + auto size = handle->GetBytesTransferred(); LOG(INFO) << "Upload " << local_file.native() << " to s3, endpoint=" << _s3_conf.endpoint << ", bucket=" << _s3_conf.bucket << ", key=" << key - << ", duration=" << duration.count() << ", capacity=" << file_size - << ", tp=" << (file_size) / duration.count(); + << ", duration=" << duration.count() << ", capacity=" << size Review Comment: the word "capacity=" seems not accurate -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org