mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Create persistent nodes in tests
This commit is contained in:
parent
8cf8265d47
commit
63873f46bb
@ -22,13 +22,11 @@
|
||||
|
||||
(invoke! [this test op]
|
||||
(case (:f op)
|
||||
:read ;(try
|
||||
(do (info "LIST ON NODE" nodename (zk-list conn "/"))
|
||||
(info "EXISTS NODE" (zk/exists conn "/a-set"))
|
||||
:read
|
||||
(do
|
||||
(assoc op
|
||||
:type :ok
|
||||
:value (read-string (:data (zk-get-str conn k)))))
|
||||
;(catch Exception _ (assoc op :type :fail, :error :connect-error)))
|
||||
:add (try
|
||||
(do
|
||||
(zk-add-to-set conn k (:value op))
|
||||
|
@ -61,7 +61,7 @@
|
||||
|
||||
(defn zk-create-if-not-exists
|
||||
[conn path data]
|
||||
(zk/create conn path :data (data/to-bytes (str data))))
|
||||
(zk/create conn path :data (data/to-bytes (str data)) :persistent? true))
|
||||
|
||||
(defn clickhouse-alive?
|
||||
[node test]
|
||||
|
Loading…
Reference in New Issue
Block a user