This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 12b2b0f3669 [fix](s3) Prevent data race when finishing s3 file 
writer's _put_object operation (#26811)
12b2b0f3669 is described below

commit 12b2b0f36692506f592bdc0524e6d80728d384fa
Author: AlexYue <[email protected]>
AuthorDate: Sun Nov 12 07:29:14 2023 +0800

    [fix](s3) Prevent data race when finishing s3 file writer's _put_object 
operation (#26811)
---
 be/src/io/fs/s3_file_writer.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/io/fs/s3_file_writer.cpp b/be/src/io/fs/s3_file_writer.cpp
index b8d4bc18d38..2438ba2cfdb 100644
--- a/be/src/io/fs/s3_file_writer.cpp
+++ b/be/src/io/fs/s3_file_writer.cpp
@@ -467,8 +467,8 @@ void S3FileWriter::_put_object(UploadFileBuffer& buf) {
                                     response.GetError().GetExceptionName(),
                                     response.GetError().GetMessage(),
                                     
static_cast<int>(response.GetError().GetResponseCode()));
-        buf.set_val(_st);
         LOG(WARNING) << _st;
+        buf.set_val(_st);
         return;
     }
     _bytes_written += buf.get_size();


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

Reply via email to