---
title: "Dmitry Titov (@UnamedRus) | Hashnode"
description: "Dmitry Titov (@UnamedRus) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@UnamedRus"
---

@UnamedRus

# Dmitry Titov

@UnamedRus · Joined October 2022

## Comments

[Another funny idea to investigate: Single ClickHouse server can't have 2 queries with the same query id... In first shell: > clickhouse-client --query "SELECT sleepEachRow(3) FROM system.zeros FORMAT Null SETTINGS max\_block\_size=1" --query\_id 2 --send\_timeout 1 In second shell: > clickhouse-client --query "SELECT sleepEachRow(3) FROM system.zeros FORMAT Null SETTINGS max\_block\_size=1" --query\_id 2 --send\_timeout 1 Received exception from server (version 22.10.1): Code: 216. DB::Exception: Received from localhost:9000. DB::Exception: Query with id = 2 is already running.. (QUERY\_WITH\_SAME\_ID\_IS\_ALREADY\_RUNNING) (query: SELECT sleepEachRow(3) FROM system.zeros FORMAT Null SETTINGS max\_block\_size=1)](https://hashnode.com/posts/shared-resource-lock-powered-by-clickhouse/634d5e48c454aa2b493c1a19/comment/635c4dcbb872be2ebe1eb741)

Comment · Article · Oct 28, 2022 · [Shared resource lock powered by Clickhouse](https://hashnode.com/posts/shared-resource-lock-powered-by-clickhouse/634d5e48c454aa2b493c1a19)
