Descripción
Muestra los watches activos que este servidor de ClickHouse tiene registrados en nodos de ZooKeeper (incluidos los ZooKeepers auxiliares). Cada fila representa un watch. Disponibilidadsystem.zookeeper_watches solo existe cuando ClickHouse Keeper o ZooKeeper están configurados. En servidores en los que no se ha configurado ninguno de los dos, la tabla no existe y las consultas sobre ella fallarán con UNKNOWN_TABLE.
Columnas
zookeeper_name(String) — Nombre de la conexión a ZooKeeper (“default” para la conexión principal o el nombre auxiliar).create_time(DateTime) — Hora en que se creó el watch.create_time_microseconds(DateTime64(6)) — Hora en que se creó el watch con precisión de microsegundos.path(String) — Ruta de ZooKeeper que se está vigilando.session_id(Int64) — ID de sesión de la conexión que registró el watch.request_xid(Int64) — XID de la solicitud que creó el watch.op_num(Enum16(‘Close’ = -11, ‘Error’ = -1, ‘Watch’ = 0, ‘Create’ = 1, ‘Remove’ = 2, ‘Exists’ = 3, ‘Get’ = 4, ‘Set’ = 5, ‘GetACL’ = 6, ‘SetACL’ = 7, ‘SimpleList’ = 8, ‘Sync’ = 9, ‘Heartbeat’ = 11, ‘List’ = 12, ‘Check’ = 13, ‘Multi’ = 14, ‘Create2’ = 15, ‘Reconfig’ = 16, ‘CheckWatch’ = 17, ‘RemoveWatch’ = 18, ‘CreateContainer’ = 19, ‘CreateTTL’ = 21, ‘MultiRead’ = 22, ‘Auth’ = 100, ‘SetWatch’ = 101, ‘SetWatch2’ = 105, ‘AddWatch’ = 106, ‘FilteredList’ = 500, ‘CheckNotExists’ = 501, ‘CreateIfNotExists’ = 502, ‘RemoveRecursive’ = 503, ‘CheckStat’ = 504, ‘TryRemove’ = 505, ‘FilteredListWithStatsAndData’ = 506, ‘ListRecursive’ = 507, ‘SessionID’ = 997)) — Operación que creó el watch.watch_type(Enum8(‘Unexpected’ = -1, ‘Children’ = 1, ‘Exists’ = 2, ‘Data’ = 3)) — Tipo de watch: Children (list), Exists o Data (get).