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

[helm] Publish not-ready addresses on the tablet headless Service so restarting servers stay resolvable

已关闭 适合新手
#4,911 4 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 2 天内回复

@morazow 已经在做这个了。

开始于 2026年10月28日。

  • #4925 来自 @morazow —— 已合并

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
helm, java, kubernetes

调研方向

阅读 templates/svc-tablet.yaml,了解 chart 如何公开服务设置;检查 coordinator 的 headless Service 模板和 values,找到对应的配置。为两个服务添加所请求的默认启用设置,然后渲染 chart,确认两个 headless Service 会发布尚未就绪的地址,而 metrics Service 保持不变。

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

描述

Search before asking
  • I searched in the issues and found nothing similar.
Description
Search before asking
  • I searched in the issues and found nothing similar.
Motivation

Clients reach tablet servers through the CLIENT listener the chart advertises: <pod>.tablet-server-hs.<namespace>.svc.cluster.local. tablet-server-hs is a headless Service without publishNotReadyAddresses, so Kubernetes publishes a pod's DNS record only while the pod is Ready.

The chart's readiness probe is a cluster-health gate: a restarted tablet server stays NotReady until the whole cluster is GREEN (all replicas in sync, all leaders active), up to healthCheckTimeoutSeconds (1200 s by default). During that window the server is running, is registered in ZooKeeper, takes part in replication and can be named as a leader in metadata, but its hostname doesn't resolve.

What we saw on 1.0.0 during a rolling restart (3 tablet servers, ~11 minutes NotReady per server):

  • The lake tiering job failed over twice with java.net.UnknownHostException: tablet-server-2.tablet-server-hs.<ns>.svc.cluster.local.
  • Writers that still routed requests to the restarting server failed with UnknownHostException for the whole window, and their metadata refreshes against that server failed the same way.

Setting publishNotReadyAddresses: true on the Service by hand made the restarting server resolvable immediately and removed the UnknownHostException errors. This is the usual pattern for StatefulSet peer-discovery Services, which need per-pod DNS regardless of readiness. The deprecated service.alpha.kubernetes.io/tolerate-unready-endpoints annotation is not an alternative: it's ignored by the EndpointSlice controller (tested on Kubernetes 1.35).

It also becomes a requirement if the INTERNAL listener is advertised by DNS name instead of pod IP (#2076): otherwise peers can't reach a restarting server during the gate either.

Readiness still controls rollouts: the StatefulSet controller and PodDisruptionBudgets use pod readiness, not the Service's endpoints, so the gate keeps working.

Solution
  • Add publishNotReadyAddresses: true to templates/svc-tablet.yaml, configurable through tablet.service.publishNotReadyAddresses (default true).
  • Do the same for coordinator-server-hs (coordinator.service.publishNotReadyAddresses), which is the clients' bootstrap address.
  • Leave the metrics Services unchanged.
Willingness to contribute
  • I'm willing to submit a PR!
主要语言
Java
星标
2.2k
派生
658
平均合并
2 天 22 小时
30 天内合并 PR
117

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

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

apache/fluss 的其他 Issue

查看 apache/fluss 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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