Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

`socket_keepalive` doesn't work with shaded clickhouse-jdbc

未关闭
#3,092 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
java, linux
领域
databases

调研方向

首先,在 Ubuntu 22.04 上使用 ClickHouse Server 26.7.5.10 重现 JDBC 属性和 URL 形式,然后比较 shaded clickhouse-jdbc 客户端的 socket 行为。完成标准是,启用 socket_keepalive 后,受影响的客户端版本在 ss 输出中显示预期的 keepalive 计时器。

由索引模型根据 Issue 内容生成。

描述

bug

socket_keepalive doesnt' applied

Steps to reproduce

Note: I would expect that instruction from official site[1] should end up with the same result.

  1. Specify following option for apache/cloudberry-pxf:
      <property>
       <name>jdbc.connection.property.socket_keepalive</name>
       <value>true</value>
      </property>
    
    or in JDBC URL &socket_keepalive=true
  2. expect that SO_KEEPALIVE=true. However it is not.
    Actual:
    # ss -Otnpio state established | grep -F '8123'
    0      0                    [::ffff:10.1.0.9]:44198               [::ffff:10.1.0.20]:8123  users:(("java",pid=2731285,fd=34)) ts sack illinois wscale:10,4 rto:201 rtt:0.343/0.188 <cut>
    
    Expected (spot the timer section!):
    0      0                  [::ffff:10.1.0.29]:15938                 [::ffff:10.1.0.20]:8123  users:(("java",pid=514753,fd=36)) timer:(keepalive,10sec,0) ts sack illinois wscale:10,4 rto:201 rtt:0.249/0.123 <cut>
    
Environment
  • Cloud
  • Client version: 0.9.8 and 0.10.0
  • OS: Ubuntu 22.04
ClickHouse Server
  • ClickHouse Server version: 26.7.5.10
  • CREATE TABLE statements for tables involved:
    SELECT toInt32(sleep(600)) AS slept
    SETTINGS
       function_sleep_max_microseconds_per_block = 600000000,
       max_execution_time = 0
    

[1] https://clickhouse.com/docs/integrations/language-clients/java/jdbc#linux

主要语言
Java
星标
1.6k
派生
637
平均合并
3 天 8 小时
30 天内合并 PR
32

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ClickHouse/clickhouse-java 的其他 Issue

查看 ClickHouse/clickhouse-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。