版本更新时出现clickhouse未知编解码器系列错误

raogr8fs  于 2021-07-15  发布在  ClickHouse
关注(0)|答案(1)|浏览(1065)

我一直在研究一个三节点的clickhouse集群,其中有一个使用replicatedmergetree创建的表。我最近将它的一个节点从版本18.14.2更新到19.3.7。但是,升级后,我无法与升级的节点建立连接,因为数据没有同步。
clickhouse错误日志如下所示。

(StorageReplicatedMergeTree): DB::StorageReplicatedMergeTree::queueTask()::<lambda(DB::StorageReplicatedMergeTree::LogEntryPtr&)>: Code: 432, e.displayText() = DB::Exception: Unknown codec family code : 130, Stack trace:

0. clickhouse-server(StackTrace::StackTrace()+0x16) [0x5d9fdf6]
1. clickhouse-server(DB::Exception::Exception(std::string const&, int)+0x1f) [0x2ceb79f]
2. clickhouse-server(DB::CompressionCodecFactory::get(unsigned char) const+0x185) [0x5af35b5]
3. clickhouse-server(DB::CompressedReadBufferBase::readCompressedData(unsigned long&, unsigned long&)+0x911) [0x5af0e31]
4. clickhouse-server(DB::CompressedReadBuffer::nextImpl()+0x26) [0x5aef7b6]
5. clickhouse-server(DB::MergeTreeDataPartChecksums::read_v3(DB::ReadBuffer&)+0x834) [0x5738604]
6. clickhouse-server(DB::MergeTreeDataPartChecksums::read_v4(DB::ReadBuffer&)+0xb2) [0x5738fd2]
7. clickhouse-server(DB::MergeTreeDataPartChecksums::read(DB::ReadBuffer&, unsigned long)+0x28) [0x5739f68]
8. clickhouse-server(DB::MergeTreeDataPartChecksums::read(DB::ReadBuffer&)+0x94) [0x573a114]
9. clickhouse-server(DB::MergeTreeDataPart::loadChecksums(bool)+0x119) [0x572f6b9]
10. clickhouse-server(DB::MergeTreeDataPart::loadColumnsChecksumsIndexes(bool, bool)+0x39) [0x57338a9]
11. clickhouse-server(DB::DataPartsExchange::Fetcher::fetchPart(std::string const&, std::string const&, std::string const&, int, DB::ConnectionTimeouts const&, std::string const&, std::string const&, std::string const&, bool, std::string const&)+0xdde) [0x56d955e]
12. clickhouse-server() [0x567a556]
13. clickhouse-server(DB::StorageReplicatedMergeTree::fetchPart(std::string const&, std::string const&, bool, unsigned long)+0x7a9) [0x569c379]
14. clickhouse-server(DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&)+0x999) [0x569ebf9]
15. clickhouse-server(DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&)+0x9f) [0x56a3c9f]
16. clickhouse-server() [0x56a4610]
17. clickhouse-server(DB::ReplicatedMergeTreeQueue::processEntry(std::function<std::shared_ptr<zkutil::ZooKeeper> ()>, std::shared_ptr<DB::ReplicatedMergeTreeLogEntry>&, std::function<bool (std::shared_ptr<DB::ReplicatedMergeTreeLogEntry>&)>)+0x3e) [0x57aadfe]
18. clickhouse-server(DB::StorageReplicatedMergeTree::queueTask()+0x192) [0x5678b62]
19. clickhouse-server(DB::BackgroundProcessingPool::threadFunction()+0x396) [0x56d3b86]
20. clickhouse-server() [0x56d4484]
21. clickhouse-server(ThreadPoolImpl<std::thread>::worker(std::_List_iterator<std::thread>)+0x199) [0x5da8aa9]
22. clickhouse-server() [0x65ce86f]
23. /lib64/libpthread.so.0(+0x7e25) [0x7fb7b43ffe25]
24. /lib64/libc.so.6(clone+0x6d) [0x7fb7b3c2334d]

编辑1:
升级到19.4.3.11修复了此错误。但是,现在不断出现以下错误,仍然无法与服务器建立连接。
(storagereplicatedmergetree):db::storagereplicatedmergetree::queuetask():::poco::exception。代码:1000,e.code()=0,e.displaytext()=null指针:_pinstancein file“/home/centos/clickhouse rpm/rpmbuild/build/clickhouse-19.4.3.11-stable/contrib/poco/util/include/poco/util/application.h”,第457行
编辑2:
发现上面是clickhouse v19.4.3.11中的另一个bug-https://github.com/yandex/clickhouse/issues/5005

gz5pxeao

gz5pxeao1#

我遇到了相同的异常,需要在失败节点上执行以下查询(请参阅github:db::exception:unknown codec family code:4):

SYSTEM DROP MARK CACHE

相关问题