Skip to content

Commit

Permalink
[Bug] BE download_files function exists log print sensitive msg apach…
Browse files Browse the repository at this point in the history
  • Loading branch information
LuGuangming committed Dec 25, 2023
1 parent 4495f81 commit 45c1c4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions be/src/olap/task/engine_clone_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
#include <memory>
#include <mutex>
#include <ostream>
#include <regex>
#include <set>
#include <shared_mutex>
#include <system_error>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <regex>

#include "common/config.h"
#include "common/logging.h"
Expand Down Expand Up @@ -547,7 +547,8 @@ Status EngineCloneTask::_download_files(DataDir* data_dir, const std::string& re
}
if (local_file_size != file_size) {
LOG(WARNING) << "download file length error"
<< ", remote_path=" << _mask_token(remote_file_url) << ", file_size=" << file_size
<< ", remote_path=" << _mask_token(remote_file_url)
<< ", file_size=" << file_size
<< ", local_file_size=" << local_file_size;
return Status::InternalError("downloaded file size is not equal");
}
Expand Down
2 changes: 1 addition & 1 deletion be/src/olap/task/engine_clone_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class EngineCloneTask : public EngineTask {
bool* allow_incremental_clone);

Status _release_snapshot(const std::string& ip, int port, const std::string& snapshot_path);

std::string _mask_token(const std::string& str);

private:
Expand Down

0 comments on commit 45c1c4f

Please sign in to comment.