Commit Graph

54516 Commits

Author SHA1 Message Date
John Skopis
9bcc5a6175 Support interserver credential rotation
Restarting a server instance to change the interserver password results
in many replicas being out of sync until all clusters are using the new
credential.

This commit adds dynamic credential loading for both the client
(Replicated* tables) and server (InterserverIOHTTPHandler).

This commit also adds the ability to rotate credentials, i.e. accept more
than one credential during a credential change.

state0 (no auth):

    <interserver_http_credentials />

state1 (auth+allow_empty migration):

    <interserver_http_credentials>
        <user>admin</user>
        <password>222</password>
        <allow_empty>true</allow_empty>
    </interserver_http_credentials>

state2 (auth+new admin password migration):

    <interserver_http_credentials>
        <user>admin</user>
        <password>333</password>
        <users>
            <admin>222</admin>
        </users>
    </interserver_http_credentials>
2021-01-04 09:59:09 +00:00
alexey-milovidov
7f85ae7fa7
Merge pull request #18682 from ClickHouse/mariadb-remove-getservbyname
Remove "harmful" function from mariadbclient
2021-01-04 04:06:12 +03:00
alexey-milovidov
486418d112
Merge pull request #18688 from ClickHouse/function_byte_size
Merge byteSize function
2021-01-04 01:17:11 +03:00
Nikolai Kochetov
3a1ec56486 Revert "Merge pull request #18411 from ClickHouse/try-fix-max_result_rows"
This reverts commit 9a2b163db7, reversing
changes made to 5e97df7c29.
2021-01-03 21:51:57 +03:00
alexey-milovidov
768e4871a4
Merge pull request #18697 from ClickHouse/arcadia-replicated-tables
Allow Replicated tables in Arcadia
2021-01-03 21:34:23 +03:00
Alexey Milovidov
7e2a14fd2c Proper submodule update 2021-01-03 21:19:44 +03:00
Alexey Milovidov
37577ad848 Merge branch 'master' into mariadb-remove-getservbyname 2021-01-03 21:11:52 +03:00
alexey-milovidov
15c0613c71
Merge pull request #18634 from ClickHouse/fix-perf-test-2
Fix too long perf test
2021-01-03 20:39:41 +03:00
Alexey Milovidov
c59deb4bca Allow Replicated tables in Arcadia 2021-01-03 19:20:09 +03:00
Alexey Milovidov
6ab08751b4 Merge branch 'master' into fix-perf-test-2 2021-01-03 18:10:13 +03:00
Alexey Milovidov
501785c397 Merge branch 'master' into function_byte_size 2021-01-03 18:07:40 +03:00
Alexey Milovidov
ab83245b57 Addition to #18526 2021-01-03 18:07:18 +03:00
Alexey Milovidov
f2ae42b857 utils/generate-ya-make/generate-ya-make.sh 2021-01-03 04:37:10 +03:00
Alexey Milovidov
25b100761f Merge branch 'master' into function_byte_size 2021-01-03 04:36:48 +03:00
alexey-milovidov
1e98917963
Merge pull request #18687 from ClickHouse/bar-simplification
Simplify code of function "bar"
2021-01-03 04:36:29 +03:00
Alexey Milovidov
35255aecb3 Merge branch 'master' into fix-perf-test-2 2021-01-03 02:45:23 +03:00
alexey-milovidov
ec2f835bac
Merge pull request #18686 from azat/fix-perf-tests
Fix performance comparison
2021-01-03 02:44:22 +03:00
Alexey Milovidov
d059c245ab Add another test 2021-01-03 02:03:09 +03:00
Alexey Milovidov
a368a6802d Move implementation inside out 2021-01-03 01:58:10 +03:00
Alexey Milovidov
2a6388bdf6 Update test 2021-01-03 00:32:37 +03:00
Alexey Milovidov
820af3a48d Simplify code of function "bar" 2021-01-02 23:40:15 +03:00
Azat Khuzhin
de7909211d Try using top_level_domains from the patched performance archive
If there is top_level_domains list in the upstream/master, use from the
patched version (this is required to run all performance tests for
upstream/master in the PR).
2021-01-02 17:27:03 +03:00
Azat Khuzhin
469b631ca6 Fix performance comparison
In #18113 the top_level_domains list copying was moved into
docker/packager/binary/build.sh, this was done to avoid symlinks (since
Dockerfile cannot dereference them).

But the patch was wrong, since it copied into the root (/), which is not
included into performance.tgz and also compare.sh was not modified.

This wasn't showed up with CI checks since the docker image wasn't
updated and it still included that top_level_domains, once it was
modified the image was updated and it became broken.

Cc: @akuzm
2021-01-02 17:09:20 +03:00
alexey-milovidov
aff724ea7d
PODArray: Avoid call to memcpy with (nullptr, 0) arguments (#18526)
* Avoid call to memcpy with nullptr, 0 arguments

* Add assert to PODArray

* Fix build

* Fix build

* Minor fixes for min/sim hash

* Fix build

* Fix build

* Fix build

* Fix error

* Fix "not actually an error"

* Fix build

* Fix build

* Fix build
2021-01-02 17:07:54 +03:00
Alexey Milovidov
21f8ba08fb Update submodule 2021-01-02 00:23:56 +03:00
Alexey Milovidov
886d61c2e0 Fix build 2021-01-02 00:12:43 +03:00
Alexey Milovidov
4c466c2fb5 Remove "harmful" function from mariadbclient 2021-01-01 21:32:22 +03:00
pingyu
4cf7f0c607 style fix 2021-01-02 01:00:14 +08:00
pingyu
df188aa49d bug fix 2021-01-02 00:28:32 +08:00
pingyu
cc2dc43b0d optimize vec_size for first argument 2021-01-02 00:24:47 +08:00
alexey-milovidov
19e0e1a403
Merge pull request #17646 from azat/Buffer-memory-tracking
Do not ignore server memory limits during Buffer flush
2021-01-01 18:58:52 +03:00
alexey-milovidov
e88dde3a25
Merge pull request #18677 from amosbird/fix-18676
Fix SimpleAggregateFunction in SummingMergeTree [Cond]
2021-01-01 18:56:09 +03:00
alexey-milovidov
45d3fe696b
Merge pull request #18675 from azat/compressor-cleanup
compressor: remove extra check for seeking of input
2021-01-01 18:53:16 +03:00
alexey-milovidov
db6f45d4c1
Merge pull request #18678 from amosbird/nit
Better linker name matcher
2021-01-01 18:52:14 +03:00
alexey-milovidov
17009ccb98
Update CMakeLists.txt 2021-01-01 18:52:02 +03:00
alexey-milovidov
dbac4e5185
Merge pull request #18679 from ClickHouse/more-robust-docs-release
More robust docs release
2021-01-01 18:50:04 +03:00
Alexey Milovidov
56bbdccccc More robust docs release 2021-01-01 18:49:09 +03:00
alexey-milovidov
bc16624d39
Merge pull request #18674 from traceon/apple-clang-compilation-fix
Fix AppleClang compilation - Remove auto in function parameters
2021-01-01 18:45:08 +03:00
pingyu
dc72624111 wip 2021-01-01 23:03:50 +08:00
Amos Bird
829e82c27c
better linker name matcher 2021-01-01 14:39:00 +08:00
Amos Bird
6a644b2af1
Fix SimpleAggregateFunction in SummingMergeTree 2 2021-01-01 12:42:22 +08:00
Azat Khuzhin
c0fa2fb6e6 compressor: remove extra check for seeking of input 2020-12-31 22:13:04 +03:00
Azat Khuzhin
ea4c25e7dd Do not ignore server memory limits during Buffer flush
But ignore them during rollback, since it is better to account memory
incorrectly them terminating the server.
2020-12-31 22:10:39 +03:00
Nikita Mikhaylov
4165a58ce4
Merge pull request #11617 from nikitamikhaylov/parallel-parsing-input-format
Parallel formatting
2020-12-31 21:22:16 +04:00
pingyu
b8b3c1f166 wip 2021-01-01 01:14:21 +08:00
Denis Glazachev
f9d5d3dcd3 Remove auto in function parameters 2020-12-31 20:17:51 +04:00
alexey-milovidov
c2f0451e39
Merge pull request #18362 from ClickHouse/allow_low_cardinality_key_alter
Add ability to change some types for primary key
2020-12-31 15:27:52 +03:00
alexey-milovidov
a2e1f21ef2
Merge pull request #18637 from amosbird/summingsimple
Fix SimpleAggregateFunction in SummingMergeTree
2020-12-31 15:23:26 +03:00
alexey-milovidov
12ad7c31df
Merge pull request #18486 from ClickHouse/better_18167
Better version of #18167
2020-12-31 15:20:03 +03:00
alexey-milovidov
60a902b072
Merge pull request #18642 from ClickHouse/filimonov-build-instuctions-clang-11
Update build instructions for clang-11
2020-12-31 15:17:52 +03:00