william

Keep Calm and Markdown.

c++ 巧用 do...while.false

今天看代码发现一个比较巧妙的方法,可以参考 SO 链接 对比两个 c++ 代码段 1 2 3 4 5 do { // code if (condition) break; // or continue // more code } while(false); 完爆一下的 goto 1 2 3 4 5 6 { // code if (condition) goto

RShiny 使用指南

RShiny 是什么Shiny 是一个 R 语言的软件包,提供了用于制作 Web-UI/app 的便捷工具。这些应用提供了交互式的数据展示、实时的统计分析与高度可定制化的操作界面,

Clickhouse 连接错误次数

问题:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
>     DBI::dbSendQuery(conn, sql)
Error in select(conn@ptr, statement) :
DB::Exception: All attempts to get table structure failed. Log:
Code: 279, e.displayText() = DB::NetException: All connection tries failed. Log:
Code: 209, e.displayText() = DB::NetException: Timeout: connect timed out: 10.20.140.3:9000 (10.20.140.3:9000) (version 21.4.7.3 (official bui
ld))
Code: 209, e.displayText() = DB::NetException: Timeout: connect timed out: 10.20.140.3:9000 (10.20.140.3:9000) (version 21.4.7.3 (official bui
ld))
Code: 209, e.displayText() = DB::NetException: Timeout: connect timed out: 10.20.140.3:9000 (10.20.140.3:9000) (version 21.4.7.3 (official bui
ld))

解决方案参考:Inconsistent behaviour of Distributed table engine and remote table function when called with cluster and with list of addresses

1
SET connections_with_failover_max_tries = 5
0%