Commit Graph

133916 Commits

Author SHA1 Message Date
Jordi Villar
08492ae0c5 Only copy insert_context when needed 2024-02-05 10:16:45 +01:00
Jordi Villar
9223f74c91 Fix corner case when passing update_insert_deduplication_token_in_dependent_materialized_views 2024-02-05 10:16:45 +01:00
Alexey Milovidov
e64466c676
Merge pull request #59161 from Alex-Cheng/master
Fix the default value of `async_insert_max_data_size` in EN document
2024-02-05 02:17:16 +01:00
Igor Nikonov
7123a27f30
Merge pull request #59380 from ClickHouse/cleanup-connection-pool-surroundings
Cleanup connection pool surroundings
2024-02-04 22:34:07 +01:00
Igor Nikonov
3402503422
Merge pull request #59404 from ClickHouse/fix-messed-up-progress
Progress bar: use FQDN to differentiate metrics from different hosts
2024-02-04 22:27:00 +01:00
Igor Nikonov
966f7eeabe
Merge pull request #59534 from ClickHouse/use-connection-pool-ptr
Use ConnectionPoolPtr instead of raw pointer
2024-02-04 22:22:51 +01:00
alesapin
db046c1bce
Merge pull request #59517 from ClickHouse/remove_scarry_message
Remove a scary message if an error is retryable
2024-02-04 17:43:06 +01:00
Sergei Trifonov
32d11cdc2d
Merge pull request #59548 from amosbird/compatible-dashboard
Compress state of dashboard [2]
2024-02-04 12:39:57 +01:00
Amos Bird
e3716b0f38
Backward compatibility of uncompressed state 2024-02-04 11:03:18 +08:00
Alex Cheng
5c3e119a4f
Merge branch 'ClickHouse:master' into master 2024-02-04 10:48:07 +08:00
Igor Nikonov
df4bc398fb Merge remote-tracking branch 'origin/master' into fix-messed-up-progress 2024-02-03 10:25:10 +00:00
Igor Nikonov
c7499b7395 Use ConnectionPoolPtr instead of raw pointer 2024-02-02 18:43:09 +00:00
Max K
0947d5c89e
CI: ci cache. step 1 (#58664)
* ci cache class
 #no_merge_commit #ci_set_reduced
2024-02-02 18:10:47 +01:00
Julia Kartseva
f41f4e4bd0
Merge pull request #58486 from jkartseva/adjustable-async-timeouts
Adjustable asynchronous insert timeouts
2024-02-02 08:53:58 -08:00
Raúl Marín
062b0b211e
Merge pull request #59509 from ClickHouse/revert-59375-poco-logger-small-refactoring
Revert "Poco Logger small refactoring"
2024-02-02 16:06:12 +01:00
Igor Nikonov
931fc6572c Call getFQDNOrHostName() once 2024-02-02 14:33:34 +00:00
Igor Nikonov
8c60c6b669 Use always host_name for profile events block 2024-02-02 14:27:09 +00:00
Igor Nikonov
4c75b4bc7c Return display name 2024-02-02 14:04:27 +00:00
Mikhail f. Shiryaev
3fe8babe05
Merge pull request #59520 from ClickHouse/update-create-pr-action
Update the peter-evans/create-pull-request action to v6
2024-02-02 14:52:32 +01:00
Mikhail f. Shiryaev
9febc8e5b4
Update the peter-evans/create-pull-request action to v6 2024-02-02 14:39:23 +01:00
Igor Nikonov
74e04e1819 Merge remote-tracking branch 'origin/master' into fix-messed-up-progress 2024-02-02 13:11:07 +00:00
Igor Nikonov
7cd78b7fc4 Fix clang-tidy warning 2024-02-02 13:09:23 +00:00
Alexander Sapin
d5e3b71590 Remove scarry message if error is retryable 2024-02-02 14:07:37 +01:00
Mikhail f. Shiryaev
d30e65f0e0
Merge pull request #59515 from ClickHouse/auto/v23.11.5.29-stable
Update version_date.tsv and changelogs after v23.11.5.29-stable
2024-02-02 14:01:24 +01:00
robot-clickhouse
67ac92e1a1 Update version_date.tsv and changelogs after v23.11.5.29-stable 2024-02-02 12:55:17 +00:00
Mikhail f. Shiryaev
7012861faa
Merge pull request #59511 from ClickHouse/auto/v23.12.3.40-stable
Update version_date.tsv and changelogs after v23.12.3.40-stable
2024-02-02 13:50:22 +01:00
Igor Nikonov
eb89db0343 Merge remote-tracking branch 'origin/master' into cleanup-connection-pool-surroundings 2024-02-02 12:15:09 +00:00
robot-clickhouse
ae6618e0b3 Update version_date.tsv and changelogs after v23.12.3.40-stable 2024-02-02 11:57:38 +00:00
Mikhail f. Shiryaev
afe58c237c
Merge pull request #59510 from ClickHouse/auto/v24.1.2.5-stable
Update version_date.tsv and changelogs after v24.1.2.5-stable
2024-02-02 12:46:59 +01:00
robot-clickhouse
e7f63abc2f Update version_date.tsv and changelogs after v24.1.2.5-stable 2024-02-02 11:41:46 +00:00
Raúl Marín
87d493533c
Revert "Poco Logger small refactoring" 2024-02-02 12:10:05 +01:00
Alexander Gololobov
095648d7bc
Merge pull request #59388 from ClickHouse/system_zookeeper_retries
Retry disconnects and expired sessions when reading system.zookeeper
2024-02-02 11:52:15 +01:00
Robert Schulze
bf0733b7e9
Merge pull request #59462 from zhongyuankai/order_by_bug_fix
Fix `SELECT * FROM [...] ORDER BY ALL` with Analyzer
2024-02-02 10:35:05 +01:00
Robert Schulze
90c2bf691c
Merge remote-tracking branch 'ClickHouse/master' into order_by_bug_fix 2024-02-02 09:30:56 +00:00
Julia Kartseva
505b9bac44 Update SettingsChangesHistory.h 2024-02-02 07:15:27 +00:00
Julia Kartseva
7c715e66a2 Update existing tests 2024-02-02 07:15:24 +00:00
Julia Kartseva
5b07039ab2 Update settings.md 2024-02-01 22:45:10 +00:00
Julia Kartseva
689c368b76 Adaptive async timeouts: consider queue flush history
In addition to the time since the most recent insert,
consider the elapsed time between the two recent queue
flushes when decreasing the timeout or processing an
entry synchronously.
2024-02-01 22:45:10 +00:00
Julia Kartseva
17d2455448 Integration tests for adaptive async insert timeout
Add initial tests.
2024-02-01 22:45:09 +00:00
Julia Kartseva
4ef02a1895 Log timeout for entries processed asynchronously 2024-02-01 22:45:09 +00:00
Julia Kartseva
c04e5a4f35 Asynchronous insert queue size and bytes metrics
Add AsynchronousInsertQueueSize and AsynchronousInsertQueueBytes
metrics to improve observability of asynchronous inserts.
The metrics do not account for tasks dispatched for immediate processing
(as opposed to, e.g., PendingAsyncInsert).

```
SELECT value
FROM system.metrics
WHERE metric IN ('AsynchronousInsertQueueSize', 'PendingAsyncInsert')

Query id: a711dd83-b48d-4ad5-8031-fa59b21a7c38

┌─value─┐
│    18 │
│    23 │
└───────┘
```

```
SELECT value
FROM system.metrics
WHERE metric IN ('AsynchronousInsertQueueSize', 'AsynchronousInsertQueueBytes')

Query id: b35a7ceb-2bb5-46ad-b301-e6cf03508699

┌─value─┐
│    28 │
│  1372 │
└───────┘
```
2024-02-01 22:45:09 +00:00
Julia Kartseva
04c8bd1be5 Adaptive asynchronous insert timeouts
Implement the algorithm described in #56783 for adaptive asynchronous
insert timeouts.
- The adaptive async insert timeout can take values within
[async_insert_busy_timeout_min_ms, async_insert_busy_timeout_max_ms].
- The initial value is set to async_insert_busy_timeout_min_ms.
- If the elapsed time since the most recent queue insert was
  greater than the maximum timeout, process the queue content immediately,
  and reduce the timeout.
- If the elapsed time was long enough (longer than a would-be decreased
  timeout), decrease the timeout.
- The adaptive timeout is changes exponentially based on the
  async_insert_busy_timeout_{increase|decrease}_rate.

Fixes: https://github.com/ClickHouse/ClickHouse/issues/56783
2024-02-01 22:45:06 +00:00
Alexey Milovidov
3fcfcd469a
Merge pull request #59499 from ClickHouse/binary-better
Fixes for binary.html
2024-02-01 21:50:08 +01:00
Alexey Milovidov
15467f2efb
Merge pull request #59451 from ClickHouse/remove-unused-headers
CLion says these headers are unused
2024-02-01 21:47:17 +01:00
Igor Nikonov
6c83508af1 Remove unused member 2024-02-01 19:51:07 +00:00
Alexey Milovidov
667256a67d Fixes for binary.html 2024-02-01 20:36:38 +01:00
Alexey Milovidov
6100e4a0ca
Merge pull request #59479 from ClickHouse/revert-59386-update_libxml2
Revert "Update libxml2 version to address some bogus security issues"
2024-02-01 19:21:25 +01:00
Alexey Milovidov
847eb86298
Merge pull request #59299 from nickitat/upd_aws_sdk
Update AWS SDK to 1.11.234
2024-02-01 19:20:42 +01:00
Igor Nikonov
c93a2cd2dd Remove unused header 2024-02-01 17:31:14 +00:00
Igor Nikonov
72ddc6af02 Remove unused includes 2024-02-01 15:47:13 +00:00