Azat Khuzhin
af9910b518
Fix leak of demangle result (for opentelementry)
...
LSan found [1]:
Direct leak of 5170176 byte(s) in 5049 object(s) allocated from:
0 0xc598edd in malloc (/usr/bin/clickhouse+0xc598edd)
1 0x39679739 in (anonymous namespace)::itanium_demangle::initializeOutputStream(char*, unsigned long*, (anonymous namespace)::itanium_demangle::OutputStream&, unsigned long) obj-x86_64-linux-gnu/../contrib/libcxxabi/src/demangle/Utility.h:178:31
2 0x39679739 in __cxa_demangle obj-x86_64-linux-gnu/../contrib/libcxxabi/src/cxa_demangle.cpp:351:13
3 0x28f6f3ed in DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr<DB::Context>, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) obj-x86_64-linux-gnu/../src/Interpreters/executeQuery.cpp:662:44
[1]:
https://s3.amazonaws.com/clickhouse-test-reports/33957/08f4f45fd9da923ae3e3fdd8a527c297d35247eb/stress_test__address__actions_.html
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-01-27 13:46:37 +03:00
Mikhail f. Shiryaev
88629657ca
Merge pull request #34012 from ClickHouse/pr_description
...
Pr description
2022-01-27 11:09:17 +01:00
Maksim Kita
af5ad2f370
Remove DecimalPaddedPODArray
2022-01-27 10:07:53 +00:00
Nikolay Degterinsky
697ca238f3
Merge pull request #34051 from grant88/patch-2
...
little fix user.md
2022-01-27 12:49:34 +03:00
Nikolay Degterinsky
6c08a11547
Change modules url
2022-01-27 09:36:50 +00:00
grantovsky
1eb72b4544
little fix user.md
...
removed keyword 'NAME' from HOST REGEXP instruction in examples
2022-01-27 12:25:55 +03:00
alexey-milovidov
44cdb9f37e
Merge pull request #34042 from ClickHouse/symlinks-to-keeper
...
Add symlinks to keeper
2022-01-27 12:25:25 +03:00
Maksim Kita
8ad6b9fb58
Merge pull request #34047 from cnmade/PF202201271059
...
sync document to zh: how-do-i-contribute-code-to-clickhouse
2022-01-27 10:09:21 +01:00
Maksim Kita
fcc57f08f9
Merge pull request #34034 from Algunenano/i34033
...
CurrentlyExecuting: Require mutex usage explicitly
2022-01-27 10:08:07 +01:00
cnmade
f4f6b7ddf3
Fixed zh...statements/alter: remove bak file
2022-01-27 16:08:01 +08:00
cnmade
fc035f49c0
Fixed zh...statements/alter: translate to zh
2022-01-27 16:07:25 +08:00
cnmade
cd13f9a5b3
Fixed zh...statements/alter: reimport files
2022-01-27 15:36:49 +08:00
cnmade
963e3daba1
Fixed zh...statements/alter: rename old file
2022-01-27 15:31:37 +08:00
cnmade
9f7799637c
Translate zh/sql-reference/statements/use: fix en translate , remove bakup file
2022-01-27 14:57:59 +08:00
cnmade
6621618d16
Translate zh/sql-reference/statements/use: add translate
2022-01-27 14:55:28 +08:00
cnmade
be55296e06
Translate zh/sql-reference/statements/use: remove old file
2022-01-27 14:54:12 +08:00
cnmade
8efe312d1d
sync document to zh: how-do-i-contribute-code-to-clickhouse
2022-01-27 11:03:13 +08:00
Nikolay Degterinsky
02146a11d8
Merge pull request #33995 from cnmade/PF202201261010
...
Translate zh/faq/general/index
2022-01-27 04:42:49 +03:00
Nikolay Degterinsky
de12521d3f
Merge pull request #33999 from cnmade/PF202201261620
...
Translate zh/faq/general/mapreduce
2022-01-27 04:41:57 +03:00
alexey-milovidov
85bd87a5a0
Merge pull request #34041 from ClickHouse/authors-in-blog
...
Add authors in blog
2022-01-27 02:04:21 +03:00
Alexey Milovidov
ff31a2c9e0
Add symlinks to keeper
2022-01-27 01:23:18 +03:00
Alexey Milovidov
96348dc7e8
Add authors in blog
2022-01-27 01:18:11 +03:00
Alexey Milovidov
7e0341ddc0
Update year
2022-01-27 01:01:27 +03:00
Maksim Kita
10cba358cf
Merge pull request #33952 from grant88/patch-1
...
Update user.md
2022-01-26 22:29:14 +01:00
alexey-milovidov
58b2bbe868
Merge pull request #34040 from ClickHouse/rfraposa-patch-1
...
Rich's feedback
2022-01-27 00:27:27 +03:00
alexey-milovidov
2c8d722709
Update clickhouse-v22.1-released.md
2022-01-27 00:26:34 +03:00
alexey-milovidov
766ec93ec1
Merge pull request #34039 from ClickHouse/blog-post-22.1
...
Add blog post for 22.1
2022-01-27 00:25:09 +03:00
Rich Raposa
9ca0acef9e
Rich's feedback
2022-01-26 14:18:16 -07:00
Alexey Milovidov
8d947daa06
Add blog post for 22.1
2022-01-26 23:58:30 +03:00
Alexey Milovidov
fb02786084
Add blog post for 22.1
2022-01-26 23:49:33 +03:00
Alexey Milovidov
5537e64e94
Add blog post for 22.1
2022-01-26 23:46:45 +03:00
Alexey Milovidov
dedbd2242e
Add blog post for 22.1
2022-01-26 23:45:18 +03:00
Raúl Marín
5a59d976dd
CurrentlyExecuting: Require mutex usage explicitly
2022-01-26 18:44:35 +01:00
zvonand
1384f9e89d
moved common code out of template
2022-01-26 20:15:34 +03:00
HarryLeeIBM
d656da1506
Issue 7334: also remove one unnecessary test
2022-01-26 10:43:45 -05:00
Mikhail f. Shiryaev
662444fe13
Merge pull request #33963 from pkit/fix_chown_squash
...
docker: fix root squashed data dirs
2022-01-26 16:13:38 +01:00
alesapin
289a51b61d
Merge pull request #33905 from zhongyuankai/fix_same_disk_path
...
Fix disk using the same path
2022-01-26 17:38:08 +03:00
Mikhail f. Shiryaev
22eddff0d5
Add a comment about broken logic for skipping checks
2022-01-26 15:30:59 +01:00
Mikhail f. Shiryaev
462e95d0fa
Replace labels_from_ip by pr_event_from_api
2022-01-26 15:03:30 +01:00
Kruglov Pavel
057001714f
Update 02182_format_and_schema_from_stdin.sh
2022-01-26 16:53:51 +03:00
mergify[bot]
f978ca276d
Merge branch 'master' into fix-orc
2022-01-26 13:12:34 +00:00
Mikhail f. Shiryaev
6fa6588cb5
Add info about body for a failed check
2022-01-26 14:03:01 +01:00
Constantine Peresypkin
f5787ff0a9
docker: fix root squashed data dirs
...
if we use some root squashed volume mappings in docker
uid=0 is actually uid=nobody
thus FS operations with uid=0 will fail miserably
and overall it's a strange idea to create dirs under root when
DO_NOT_CHOWN is in effect...
2022-01-26 14:29:27 +02:00
Kruglov Pavel
662ea9d024
Merge pull request #33927 from kitaisreal/range-hashed-dictionary-refactoring
...
RangeHashedDictionary refactoring
2022-01-26 15:26:57 +03:00
Mikhail f. Shiryaev
99e0ce1ab8
Add get_with_retries helper to build_download_helper.py
2022-01-26 13:20:08 +01:00
Mikhail f. Shiryaev
7cde981531
Apply black formatter to build_download_helper.py
2022-01-26 12:10:20 +01:00
Mikhail f. Shiryaev
1ecee3aa8e
Apply black formatter to pr_info
2022-01-26 12:09:35 +01:00
alexey-milovidov
0a112bcf61
Update StringSearcher.h
2022-01-26 13:45:26 +03:00
Azat Khuzhin
08f4f45fd9
Fix Context leak (recursive context reference) in StorageSQLite
...
CI founds after LSan had been fixed [1]:
01889_sqlite_read_write: [ FAIL ] 8.32 sec. - return code: 1
=================================================================
==20649==ERROR: LeakSanitizer: detected memory leaks
Indirect leak of 1968 byte(s) in 1 object(s) allocated from:
0 0xc5c1ffd in operator new(unsigned long) (/usr/bin/clickhouse+0xc5c1ffd)
1 0x25e32d0d in std::__1::__unique_if<DB::StorageInMemoryMetadata>::__unique_single std::__1::make_unique<DB::StorageInMemoryMetadata, DB::StorageInMemoryMetadata const&>(DB::StorageInMemoryMetadata c>
2 0x25e32d0d in DB::IStorage::setInMemoryMetadata(DB::StorageInMemoryMetadata const&) obj-x86_64-linux-gnu/../src/Storages/IStorage.h:194:22
3 0x29bdee98 in DB::StorageSQLite::StorageSQLite(DB::StorageID const&, std::__1::shared_ptr<sqlite3>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std:>
4 0x25ee61d6 in std::__1::shared_ptr<DB::StorageSQLite> shared_ptr_helper<DB::StorageSQLite>::create<DB::StorageID, std::__1::shared_ptr<sqlite3> const&, std::__1::basic_string<char, std::__1::char_tr>
5 0x25ee61d6 in DB::TableFunctionSQLite::executeImpl(std::__1::shared_ptr<DB::IAST> const&, std::__1::shared_ptr<DB::Context const>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1:>
SUMMARY: AddressSanitizer: 171256 byte(s) leaked in 130 allocation(s).
[1]: https://github.com/ClickHouse/ClickHouse/runs/4929706698?check_suite_focus=true
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-01-26 12:56:27 +03:00
Azat Khuzhin
0fe1f070fa
Fix getauxval() in glibc-compatibility
...
getauxval() from glibc-compatibility did not work always correctly:
- it does not work after setenv(), and this breaks vsyscalls,
like sched_getcpu() [1] (and BaseDaemon.cpp always set TZ if timezone
is defined, which is true for CI [2]).
[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1163404
[2]: https://github.com/ClickHouse/ClickHouse/pull/32928#issuecomment-1015762717
- another think that is definitely broken is LSan (Leak Sanitizer), it
relies on worked getauxval() but it does not work if __environ is not
initialized yet (there is even a commit about this).
And because of, at least, one leak had been introduced [3]:
[3]: https://github.com/ClickHouse/ClickHouse/pull/33840
Fix this by using /proc/self/auxv.
And let's see how many issues will LSan find...
I've verified this patch manually by printing AT_BASE and compared it
with output of LD_SHOW_AUXV.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-01-26 12:56:27 +03:00