Skip to content

Commit cdf9c31

Browse files
authored
Merge branch 'customizations/24.3.18' into backports/24.3/77766_stop_merges_without_written_blocks
2 parents 10138e7 + e79dfb9 commit cdf9c31

File tree

239 files changed

+3378
-1252
lines changed

Some content is hidden

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

239 files changed

+3378
-1252
lines changed

.github/actionlint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ self-hosted-runner:
44
- func-tester
55
- func-tester-aarch64
66
- fuzzer-unit-tester
7-
- stress-tester
87
- style-checker
98
- style-checker-aarch64

.github/workflows/backport_branches.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,18 +236,26 @@ jobs:
236236
uses: ./.github/workflows/reusable_test.yml
237237
with:
238238
test_name: Stress test (tsan)
239-
runner_type: stress-tester
239+
runner_type: func-tester
240240
data: ${{ needs.RunConfig.outputs.data }}
241241
#############################################################################################
242242
############################# INTEGRATION TESTS #############################################
243243
#############################################################################################
244-
IntegrationTestsRelease:
245-
needs: [RunConfig, BuilderDebRelease]
244+
IntegrationTestsAsanOldAnalyzer:
245+
needs: [RunConfig, BuilderDebAsan]
246+
if: ${{ !failure() && !cancelled() }}
247+
uses: ./.github/workflows/reusable_test.yml
248+
with:
249+
test_name: Integration tests (asan, old analyzer)
250+
runner_type: func-tester
251+
data: ${{ needs.RunConfig.outputs.data }}
252+
IntegrationTestsTsan:
253+
needs: [RunConfig, BuilderDebTsan]
246254
if: ${{ !failure() && !cancelled() }}
247255
uses: ./.github/workflows/reusable_test.yml
248256
with:
249-
test_name: Integration tests (release)
250-
runner_type: stress-tester
257+
test_name: Integration tests (tsan)
258+
runner_type: func-tester
251259
data: ${{ needs.RunConfig.outputs.data }}
252260
FinishCheck:
253261
if: ${{ !failure() && !cancelled() }}
@@ -257,7 +265,8 @@ jobs:
257265
- FunctionalStatelessTestAsan
258266
- FunctionalStatefulTestDebug
259267
- StressTestTsan
260-
- IntegrationTestsRelease
268+
- IntegrationTestsTsan
269+
- IntegrationTestsAsanOldAnalyzer
261270
- CompatibilityCheckX86
262271
- CompatibilityCheckAarch64
263272
runs-on: [self-hosted, style-checker]

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,3 +369,6 @@
369369
[submodule "contrib/idna"]
370370
path = contrib/idna
371371
url = https://github.com/ada-url/idna.git
372+
[submodule "contrib/rust_vendor"]
373+
path = contrib/rust_vendor
374+
url = https://github.com/ClickHouse/rust_vendor.git

base/base/StringRef.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,11 +367,15 @@ namespace PackedZeroTraits
367367
{
368368
template <typename Second, template <typename, typename> class PackedPairNoInit>
369369
inline bool check(const PackedPairNoInit<StringRef, Second> p)
370-
{ return 0 == p.key.size; }
370+
{
371+
return 0 == p.key.size;
372+
}
371373

372374
template <typename Second, template <typename, typename> class PackedPairNoInit>
373375
inline void set(PackedPairNoInit<StringRef, Second> & p)
374-
{ p.key.size = 0; }
376+
{
377+
p.key.size = 0;
378+
}
375379
}
376380

377381

cmake/autogenerated_versions.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
# NOTE: VERSION_REVISION has nothing common with DBMS_TCP_PROTOCOL_VERSION,
44
# only DBMS_TCP_PROTOCOL_VERSION should be incremented on protocol changes.
5-
SET(VERSION_REVISION 54490)
5+
SET(VERSION_REVISION 54496)
66
SET(VERSION_MAJOR 24)
77
SET(VERSION_MINOR 3)
8-
SET(VERSION_PATCH 12)
9-
SET(VERSION_GITHASH 28795d0a47ebd38dc9a6b82038074eb0352b0f25)
8+
SET(VERSION_PATCH 18)
9+
SET(VERSION_GITHASH b163637e2f74f7b0427f9c029653aef12cfc981c)
1010

1111
# This is the 'base' tweak of the version, build scripts will
1212
# increment this by number of commits since previous tag.
1313
SET(VERSION_TWEAK 10000)
1414
SET(VERSION_FLAVOUR altinitystable)
1515

16-
SET(VERSION_DESCRIBE v24.3.12.10000.altinitystable)
17-
SET(VERSION_STRING 24.3.12.10000.altinitystable)
16+
SET(VERSION_DESCRIBE v24.3.18.76.altinitystable)
17+
SET(VERSION_STRING 24.3.18.76.altinitystable)
1818
# end of autochange

contrib/corrosion

Submodule corrosion updated 213 files

contrib/rust_vendor

Submodule rust_vendor added at 08e82ca

contrib/sysroot

Submodule sysroot updated 2109 files

docker/keeper/entrypoint.sh

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
11
#!/bin/bash
22

3-
set +x
43
set -eo pipefail
54
shopt -s nullglob
65

76
DO_CHOWN=1
8-
if [ "${CLICKHOUSE_DO_NOT_CHOWN:-0}" = "1" ]; then
7+
if [[ "${CLICKHOUSE_RUN_AS_ROOT:=0}" = "1" || "${CLICKHOUSE_DO_NOT_CHOWN:-0}" = "1" ]]; then
98
DO_CHOWN=0
109
fi
1110

12-
CLICKHOUSE_UID="${CLICKHOUSE_UID:-"$(id -u clickhouse)"}"
13-
CLICKHOUSE_GID="${CLICKHOUSE_GID:-"$(id -g clickhouse)"}"
11+
# CLICKHOUSE_UID and CLICKHOUSE_GID are kept for backward compatibility, but deprecated
12+
# One must use either "docker run --user" or CLICKHOUSE_RUN_AS_ROOT=1 to run the process as
13+
# FIXME: Remove ALL CLICKHOUSE_UID CLICKHOUSE_GID before 25.3
14+
if [[ "${CLICKHOUSE_UID:-}" || "${CLICKHOUSE_GID:-}" ]]; then
15+
echo 'WARNING: Support for CLICKHOUSE_UID/CLICKHOUSE_GID will be removed in a couple of releases.' >&2
16+
echo 'WARNING: Either use a proper "docker run --user=xxx:xxxx" argument instead of CLICKHOUSE_UID/CLICKHOUSE_GID' >&2
17+
echo 'WARNING: or set "CLICKHOUSE_RUN_AS_ROOT=1" ENV to run the clickhouse-server as root:root' >&2
18+
fi
1419

15-
# support --user
16-
if [ "$(id -u)" = "0" ]; then
17-
USER=$CLICKHOUSE_UID
18-
GROUP=$CLICKHOUSE_GID
20+
# support `docker run --user=xxx:xxxx`
21+
if [[ "$(id -u)" = "0" ]]; then
22+
if [[ "$CLICKHOUSE_RUN_AS_ROOT" = 1 ]]; then
23+
USER=0
24+
GROUP=0
25+
else
26+
USER="${CLICKHOUSE_UID:-"$(id -u clickhouse)"}"
27+
GROUP="${CLICKHOUSE_GID:-"$(id -g clickhouse)"}"
28+
fi
1929
if command -v gosu &> /dev/null; then
2030
gosu="gosu $USER:$GROUP"
2131
elif command -v su-exec &> /dev/null; then
@@ -84,11 +94,11 @@ if [[ $# -lt 1 ]] || [[ "$1" == "--"* ]]; then
8494

8595
# There is a config file. It is already tested with gosu (if it is readably by keeper user)
8696
if [ -f "$KEEPER_CONFIG" ]; then
87-
exec $gosu /usr/bin/clickhouse-keeper --config-file="$KEEPER_CONFIG" --log-file="$LOG_PATH" --errorlog-file="$ERROR_LOG_PATH" "$@"
97+
exec $gosu clickhouse-keeper --config-file="$KEEPER_CONFIG" --log-file="$LOG_PATH" --errorlog-file="$ERROR_LOG_PATH" "$@"
8898
fi
8999

90100
# There is no config file. Will use embedded one
91-
exec $gosu /usr/bin/clickhouse-keeper --log-file="$LOG_PATH" --errorlog-file="$ERROR_LOG_PATH" "$@"
101+
exec $gosu clickhouse-keeper --log-file="$LOG_PATH" --errorlog-file="$ERROR_LOG_PATH" "$@"
92102
fi
93103

94104
# Otherwise, we assume the user want to run his own process, for example a `bash` shell to explore this image

docker/packager/binary-builder/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ ENV CARGO_HOME=/rust/cargo
1414
ENV PATH="/rust/cargo/bin:${PATH}"
1515
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y && \
1616
chmod 777 -R /rust && \
17-
rustup toolchain install nightly-2023-07-04 && \
18-
rustup default nightly-2023-07-04 && \
17+
rustup toolchain install nightly-2024-04-01 && \
18+
rustup default nightly-2024-04-01 && \
1919
rustup toolchain remove stable && \
2020
rustup component add rust-src && \
2121
rustup target add x86_64-unknown-linux-gnu && \

0 commit comments

Comments
 (0)