OM
а что показывает у зукипера echo mntr|nc localhost 2181
и что в логе КХ перед трейсом, что делал этот тред?
Вначале вылетает такаяа ошибка (не важно какой я ALTER делаю, DELETE или MODIFY COLUMN одно и тоже):
020.05.23 15:55:51.334585 [ 4840 ] {a447401d-abaa-49d7-be37-5c099da848cd} <Debug> executeQuery: (from 127.0.0.1:38582) ALTER TABLE default.logs_real_raw_local MODIFY COLUMN
col1
Int642020.05.23 15:55:51.334644 [ 4840 ] {a447401d-abaa-49d7-be37-5c099da848cd} <Trace> ContextAccess (default): Access granted: ALTER MODIFY COLUMN(cash) ON default.logs_real_raw_local
2020.05.23 15:55:52.793963 [ 4773 ] {} <Error> void Coordination::ZooKeeper::receiveThread(): Code: 33, e.displayText() = DB::Exception: Cannot read all data. Bytes read: 0. Bytes expected: 4., Stack trace (when copying this message, always include the lines below):
0. Poco::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x10418760 in /usr/bin/clickhouse
1. DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x8fff8ad in /usr/bin/clickhouse
2. DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x903b49f in /usr/bin/clickhouse
3. Coordination::ZooKeeper::receiveEvent() @ 0xde0cce1 in /usr/bin/clickhouse
4. Coordination::ZooKeeper::receiveThread() @ 0xde0e15c in /usr/bin/clickhouse
Затем сразу:
2020.05.23 15:55:52.794298 [ 4825 ] {} <Error> void Coordination::ZooKeeper::sendThread(): Code: 210, e.displayText() = DB::NetException: I/O error: Broken pipe, while writing to socket (zkhost:2181), Stack trace (when copying this message, always include the lines below):
0. Poco::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x10418760 in /usr/bin/clickhouse
1. DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x8fff8ad in /usr/bin/clickhouse
2. ? @ 0x9115ef4 in /usr/bin/clickhouse
Потом следом:
2020.05.23 15:55:52.794657 [ 4773 ] {} <Error> void Coordination::ZooKeeper::finalize(bool, bool): Poco::Exception. Code: 1000, e.code() = 107, e.displayText() = Net Exception: Socket is not connected, Stack trace (when copying this message, always include the lines below):
И дальше такая:
2020.05.23 15:55:52.797232 [ 4840 ] {a447401d-abaa-49d7-be37-5c099da848cd} <Error> executeQuery: Code: 999, e.displayText() = Coordination::Exception: Connection loss (version 20.4.3.16 (official build)) (from 127.0.0.1:38582) (in query: ALTER TABLE default.logs_real_raw_local MODIFY COLUMN
col1
Int64 ), Stack trace (when copying this message, always include the lines below):0. Poco::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x10418760 in /usr/bin/clickhouse
1. DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x8fff8ad in /usr/bin/clickhouse
2. Coordination::Exception::Exception(int) @ 0xdddef5d in /usr/bin/clickhouse