Skip to content

Commit 44feb3a

Browse files
Merge branch 'master' into async-metrics-sockets
2 parents a136bba + 53751a2 commit 44feb3a

File tree

57 files changed

+1026
-486
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1026
-486
lines changed

CHANGELOG.md

Lines changed: 190 additions & 0 deletions
Large diffs are not rendered by default.

ci/jobs/scripts/check_style/aspell-ignore/en/aspell-dict.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,6 +1961,7 @@ grpcio
19611961
gtest
19621962
gtid
19631963
gzip
1964+
gunzip
19641965
gzipped
19651966
hadoop
19661967
halfMD
@@ -2345,6 +2346,8 @@ namespace
23452346
namespaces
23462347
natively
23472348
nats
2349+
ncat
2350+
netcat
23482351
ness
23492352
nestjs
23502353
netloc

ci/jobs/scripts/check_style/check_cpp.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ find $ROOT_PATH/{src,base,programs,utils} -name '*.h' -or -name '*.cpp' |
327327
echo "If an exception has LOGICAL_ERROR code, there is no need to include the text 'Logical error' in the exception message, because then the phrase 'Logical error' will be printed twice."
328328

329329
PATTERN="allow_";
330-
DIFF=$(comm -3 <(grep -o "\b$PATTERN\w*\b" $ROOT_PATH/src/Core/Settings.cpp | sort -u) <(grep -o -h "\b$PATTERN\w*\b" $ROOT_PATH/src/Databases/enableAllExperimentalSettings.cpp $ROOT_PATH/utils/check-style/experimental_settings_ignore.txt | sort -u));
331-
[ -n "$DIFF" ] && echo "$DIFF" && echo "^^ Detected 'allow_*' settings that might need to be included in src/Databases/enableAllExperimentalSettings.cpp" && echo "Alternatively, consider adding an exception to utils/check-style/experimental_settings_ignore.txt"
330+
DIFF=$(comm -3 <(grep -o "\b$PATTERN\w*\b" $ROOT_PATH/src/Core/Settings.cpp | sort -u) <(grep -o -h "\b$PATTERN\w*\b" $ROOT_PATH/src/Databases/enableAllExperimentalSettings.cpp $ROOT_PATH/ci/jobs/scripts/check_style/experimental_settings_ignore.txt | sort -u));
331+
[ -n "$DIFF" ] && echo "$DIFF" && echo "^^ Detected 'allow_*' settings that might need to be included in src/Databases/enableAllExperimentalSettings.cpp" && echo "Alternatively, consider adding an exception to ci/jobs/scripts/check_style/experimental_settings_ignore.txt"
332332

333333
# Don't allow the direct inclusion of magic_enum.hpp and instead point to base/EnumReflection.h
334334
find $ROOT_PATH/{src,base,programs,utils} -name '*.cpp' -or -name '*.h' | xargs grep -l "magic_enum.hpp" | grep -v EnumReflection.h | while read -r line;

ci/jobs/scripts/check_style/check_typos.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ ROOT_PATH="."
77
#FIXME: check all (or almost all) repo
88
codespell \
99
--skip "*generated*,*gperf*,*.bin,*.mrk*,*.idx,checksums.txt,*.dat,*.pyc,*.kate-swp,*obfuscateQueries.cpp,d3-*.js,*.min.js,*.sum,${ROOT_PATH}/utils/check-style/aspell-ignore" \
10-
--ignore-words "${ROOT_PATH}/utils/check-style/codespell-ignore-words.list" \
11-
--exclude-file "${ROOT_PATH}/utils/check-style/codespell-ignore-lines.list" \
10+
--ignore-words "${ROOT_PATH}/ci/jobs/scripts/check_style/codespell-ignore-words.list" \
11+
--exclude-file "${ROOT_PATH}/ci/jobs/scripts/check_style/codespell-ignore-lines.list" \
1212
--quiet-level 2 \
1313
"$ROOT_PATH"/{src,base,programs,utils} \
1414
$@ | grep -P '.' \

docs/en/interfaces/http.md

Lines changed: 267 additions & 128 deletions
Large diffs are not rendered by default.

programs/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ endif()
224224

225225
if (CHECK_LARGE_OBJECT_SIZES)
226226
add_custom_command(TARGET clickhouse POST_BUILD
227-
COMMAND "${CMAKE_SOURCE_DIR}/utils/check-style/check-large-objects.sh" "${CMAKE_BINARY_DIR}")
227+
COMMAND "${CMAKE_SOURCE_DIR}/utils/check-large-objects.sh" "${CMAKE_BINARY_DIR}")
228228
endif ()
229229

230230
if (SPLIT_DEBUG_SYMBOLS)

src/Common/ZooKeeper/ZooKeeper.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,13 @@ ZooKeeper::multiImpl(const Coordination::Requests & requests, Coordination::Resp
771771

772772
if (future_result.wait_for(std::chrono::milliseconds(args.operation_timeout_ms)) != std::future_status::ready)
773773
{
774-
impl->finalize(fmt::format("Operation timeout on {} {}", Coordination::OpNum::Multi, requests[0]->getPath()));
774+
auto & request = *requests[0];
775+
impl->finalize(fmt::format(
776+
"Operation timeout on {} of {} requests. First ({}): {}",
777+
Coordination::OpNum::Multi,
778+
requests.size(),
779+
demangle(typeid(request).name()),
780+
request.getPath()));
775781
return {Coordination::Error::ZOPERATIONTIMEOUT, ""};
776782
}
777783

0 commit comments

Comments
 (0)