ClickHouse® is a real-time analytics DBMS
Go to file
bharatnc 0c00b992d5 StorageReplicatedMergeTree - cleanup data dir after Zk exceptions
It's possible for `getZooKeeper()` to timeout if  zookeeper host(s) can't
be reached. In such cases `Poco::Exception` is thrown after a connection
timeout - refer to `src/Common/ZooKeeper/ZooKeeperImpl.cpp:866` for more info.

Side effect of this is that the CreateQuery gets interrupted and it exits.
But the data Directories for the tables being created aren't cleaned up.
This unclean state will hinder table creation on any retries and will
complain that the Directory for table already exists.

To achieve a clean state on failed table creations, catch this error if
the exception is of type Poco::Exception and call `dropIfEmpty()` method,
then proceed throwing the exception. Without this, the Directory for the
tables need to be manually deleted before retrying the CreateQuery.
2020-09-07 18:09:09 -07:00
.github Update PULL_REQUEST_TEMPLATE.md 2020-08-25 19:58:02 +03:00
base Another 256-bit integers (strict 32 bytes) (#14229) 2020-09-04 16:33:02 +03:00
benchmark Fix typos 2020-08-16 15:11:02 +03:00
cmake Auto version update to [20.9.1.1] [54439] 2020-08-31 23:07:41 +03:00
contrib Prepare for clang 11 2020-09-04 03:39:56 +03:00
debian Merge pull request #14460 from azat/sysv-init-systemd-compatibility 2020-09-04 03:05:44 +03:00
docker performance comparison 2020-09-07 02:49:34 +03:00
docs Merge pull request #14457 from ClickHouse/allow-to-test-website 2020-09-04 09:14:49 +03:00
programs Merge pull request #10373 from azat/dist-SELECT-optimization 2020-09-04 01:38:56 +03:00
src
tests Merge pull request #14404 from dimarub2000/system_events_show_zero_values 2020-09-07 06:40:36 +03:00
utils Datasets generation (Merging #10973) (#14442) 2020-09-04 13:39:17 +03:00
website Fix bug on the website 2020-09-04 00:05:55 +03:00
.arcignore Added .arcignore 2020-05-21 09:17:03 +03:00
.clang-format Fixed wrong code around Memory Profiler 2020-03-03 03:24:44 +03:00
.clang-tidy Enable clang-tidy for programs and utils 2020-05-18 04:19:50 +03:00
.editorconfig Changed tabs to spaces in editor configs and in style guide [#CLICKHOUSE-3]. 2017-04-01 11:35:09 +03:00
.gitattributes Better stats on github [#METR-20000]. 2016-05-04 18:03:17 +03:00
.gitignore Updated gitignore-files. 2020-08-06 18:05:32 -07:00
.gitmodules Merge pull request #12771 from arenadata/ADQM-109 2020-08-20 20:13:01 +03:00
.potato.yml Update comments in .potato.yml 2019-10-20 12:50:33 +08:00
.vimrc Changed tabs to spaces in editor configs and in style guide [#CLICKHOUSE-3]. 2017-04-01 11:35:09 +03:00
AUTHORS Update AUTHORS 2020-01-23 17:36:05 +03:00
CHANGELOG.md Update CHANGELOG.md 2020-09-03 00:33:02 +03:00
CMakeLists.txt cmake: fix potential curl linking problems 2020-08-25 20:16:44 +03:00
CODE_OF_CONDUCT.md Add minimal code of conduct #9676 2020-03-16 12:44:28 +03:00
CONTRIBUTING.md Update CONTRIBUTING.md 2020-01-27 21:03:30 +03:00
docker-compose.yml Updated docker-compose.yml #1025 2017-07-26 20:05:32 +03:00
format_sources allow several <graphite> targets (#603) 2017-03-21 23:08:09 +04:00
LICENSE Update LICENSE 2020-01-23 17:38:30 +03:00
PreLoad.cmake Disable ninja for CLion 2019-09-11 10:23:20 +03:00
README.md Update README.md 2020-09-03 22:15:44 +03:00
release Added auto-generated machine-readable file with list of stable versions 2020-05-02 21:53:55 +03:00
SECURITY.md [security docs] actually, only admins can create advisories 2020-07-10 16:51:37 +03:00
uncrustify.cfg Better .clang-format and uncrustify.cfg 2018-11-29 15:45:34 +03:00
ya.make Changes required for auto-sync with Arcadia 2020-04-16 15:31:57 +03:00

ClickHouse — open source distributed column-oriented DBMS

ClickHouse is an open-source column-oriented database management system that allows generating analytical data reports in real time.

  • Official website has quick high-level overview of ClickHouse on main page.
  • Tutorial shows how to set up and query small ClickHouse cluster.
  • Documentation provides more in-depth information.
  • YouTube channel has a lot of content about ClickHouse in video format.
  • Slack and Telegram allow to chat with ClickHouse users in real-time.
  • Blog contains various ClickHouse-related articles, as well as announcements and reports about events.
  • Code Browser with syntax highlight and navigation.
  • Yandex.Messenger channel shares announcements and useful links in Russian.
  • Contacts can help to get your questions answered if there are any.
  • You can also fill this form to meet Yandex ClickHouse team in person.

Upcoming Events