Allow disabling or removing the default namespace index of an event source's informer
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先通过 InformerManager 和 InformerWrapper 跟踪 ManagedInformerEventSource,然后检查 InformerConfiguration 以及现有的 AbstractInformerPool 和 ConfigurationServiceOverrider 入口点。将这些路径与 SharedIndexInformer.removeNamespaceIndex() 进行比较。当一个一等配置选项可以禁用默认的 namespace index,而无需实验性的 pool 子类化,并且覆盖 informer 的启动行为时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
For InformerEventSources, fabric8's default "namespace" index is unused: InformerWrapper.list(namespace) filters the item store directly, and byIndex only serves the JOSDK-qualified custom indexes. The index still costs one entry per object in the watched scope, and when an event source uses a filtering ItemStore to bound its cache, this unused index becomes the dominant retained memory (compounded by the fabric8 cleanup gap reported in fabric8io/kubernetes-client#8103).
fabric8 already exposes SharedIndexInformer.removeIndexer(String), but the SDK offers no path to the informer (it sits behind (see the edit below, the experimental informer pool provides a path).ManagedInformerEventSource's InformerManager and InformerWrapper, all inaccessible), so today the only way is reflection over three private fields
Suggestion: an InformerConfiguration flag (e.g. withoutNamespaceIndex()) applied when the wrapper starts the informer, or an extension point that hands advanced users the SharedIndexInformer for tuning.
Would you be open to a PR for this, and which of the two shapes would you prefer?
EDIT: found out that overriding AbstractInformerPool.start (via ConfigurationServiceOverrider.withInformerPool) allows calling SharedIndexInformer.removeNamespaceIndex() before the informer starts, so reflection is not required after all. The API is marked experimental though, and subclassing the pool for a per-informer concern is indirect, so we think a first-class InformerConfiguration option is still worth it. Happy to include that context in the PR.
- 主要语言
- Java
- 星标
- 943
- 派生
- 245
- 平均合并
- 2 天 58 分钟
- 30 天内合并 PR
- 46
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
operator-framework/java-operator-sdk 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 45/100
operator-framework/java-operator-sdk#3568 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
operator-framework/java-operator-sdk#3563 ·
维护者通常 1 天内回复
-
Support for Virtual Threads可能已有人在做 @xstefank 于 51 天前认领。 未关闭
operator-framework/java-operator-sdk#3538 · 2 条评论 · 已指派 2 人 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
operator-framework/java-operator-sdk#3498 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
operator-framework/java-operator-sdk#3452 ·
维护者通常 1 天内回复
查看 operator-framework/java-operator-sdk 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
liquid-java/liquidjava#321 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
OpenConext/OpenConext-access#1015 ·
维护者通常 1 天内回复
-
68000: FDBcc branch target is 2 bytes too low (uses inst_start+2 instead of the displacement word)未关闭
难度 2/5 1-3 小时 新手友好度 82/100
NationalSecurityAgency/ghidra#9702 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
apache/rocketmq-dashboard#5358 ·
维护者通常 3 天内回复