From e42a2051b10f41582009461d9f0365098ad33e75 Mon Sep 17 00:00:00 2001 From: caizhejun <5965174+caizj@users.noreply.github.com> Date: Thu, 18 Apr 2024 10:46:55 +0800 Subject: [PATCH] [fix](fs) Fix BE UT(macOS) compile error to use hdfsSync instead of hdfsHSync --- be/src/io/fs/hdfs_file_writer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/io/fs/hdfs_file_writer.cpp b/be/src/io/fs/hdfs_file_writer.cpp index 7efb4bfb073d6a..22f951b6669200 100644 --- a/be/src/io/fs/hdfs_file_writer.cpp +++ b/be/src/io/fs/hdfs_file_writer.cpp @@ -60,7 +60,7 @@ Status HdfsFileWriter::close() { _closed = true; if (_sync_file_data) { - int ret = hdfsHSync(_hdfs_handler->hdfs_fs, _hdfs_file); + int ret = hdfsSync(_hdfs_handler->hdfs_fs, _hdfs_file); if (ret != 0) { return Status::InternalError("failed to sync hdfs file. fs_name={} path={} : {}", _fs_name, _path.native(), hdfs_error());