Skip to content

Commit

Permalink
branch-3.0: [feat](docker)Add a BE ENV item 'SKIP_CHECK_ULIMIT' for D…
Browse files Browse the repository at this point in the history
…ocker to start quickly apache#45267 (apache#45467)

Cherry-picked from apache#45267

Co-authored-by: FreeOnePlus <[email protected]>
  • Loading branch information
github-actions[bot] and FreeOnePlus authored Dec 23, 2024
1 parent 8f1dc58 commit 33ccb0a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions be/src/olap/storage_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,16 @@ Status StorageEngine::_check_file_descriptor_number() {
<< ", use default configuration instead.";
return Status::OK();
}
if (getenv("SKIP_CHECK_ULIMIT") == nullptr) {
LOG(INFO) << "will check 'ulimit' value.";
} else if (std::string(getenv("SKIP_CHECK_ULIMIT")) == "true") {
LOG(INFO) << "the 'ulimit' value check is skipped"
<< ", the SKIP_CHECK_ULIMIT env value is " << getenv("SKIP_CHECK_ULIMIT");
return Status::OK();
} else {
LOG(INFO) << "the SKIP_CHECK_ULIMIT env value is " << getenv("SKIP_CHECK_ULIMIT")
<< ", will check ulimit value.";
}
if (l.rlim_cur < config::min_file_descriptor_number) {
LOG(ERROR) << "File descriptor number is less than " << config::min_file_descriptor_number
<< ". Please use (ulimit -n) to set a value equal or greater than "
Expand Down

0 comments on commit 33ccb0a

Please sign in to comment.