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

Invalid memory config error when upgrading NiFi from 24.11 to 25.3

未关闭
#806 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
kubernetes, rust

调研方向

首先复现从 Stackable 24.11/NiFi 2.0.0 升级到 Stackable 25.3/NiFi 2.2.0 的过程,并检查 NifiCluster CRD 的字段 spec.nodes.config.resource.memory.limit。跟踪 operator 在 reconciliation 期间如何处理现有的 8G 值,并根据预期的内存 quantity 格式验证结果。完成的标准是:升级保留有效配置,或以明确的验证错误拒绝无效值。

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

描述

A cluster running Stackable 24.11 and NiFi 2.0.0 was upgraded to Stackable 25.3 and NiFi 2.2.0. The only change to the NifiCluster definition was to change spec.image.productVersion from 2.0.0 to 2.2.0. When the updated CRD is applied an error is shown in the Stackable NiFi operator logs:

ERROR stackable_operator::logging::controller: Failed to reconcile object controller.name="nificluster.nifi.stackable.tech" error=reconciler for objec
t NifiCluster.v1alpha1.nifi.stackable.tech/poc-nifi.default failed error.sources=[Bootstrap configuration error, invalid JVM config, invalid memory config, invalid quantity unit
G"[]

Upon inspection the deployed CRD does show an invalid value of 8G for spec.nodes.config.resource.memory.limit. The issue can be resolved by explicitly setting spec.nodes.config.resource.memory.limit to valid value in the CRD.

The expectation is that upgrading the operator should not break an otherwise valid CRD or that an invalid CRD should not be accepted.

主要语言
Rust
星标
48
派生
12
平均合并
1 天 15 小时
30 天内合并 PR
14

环境准备

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

从这里开始

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

stackabletech/nifi-operator 的其他 Issue

查看 stackabletech/nifi-operator 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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