Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

kafka: the operator JVM test pins env by index, and MaxRAM truncates fractional limits

オープン 初心者向け
#4,882 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go, helm, kubernetes

調査の方向性

packages/system/kafka-operator/tests/jvm_sizing_test.yaml と packages/apps/kafka/templates/_jvm.tpl を読みます。まず、テストが3つの環境変数をどのように選択して比較するかを確認し、次にテンプレートがメモリ制限をどのように変換するかを調べます。テストでそれらの相対的な順序を確認し、小数のメモリ制限が指定された丸め動作でレンダリングされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

area/testing kind/cleanup priority/backlog triage/needs-triage

Two minor leftovers from the Kafka JVM sizing in #4865. Neither breaks anything today.

The cluster operator test in packages/system/kafka-operator/tests/jvm_sizing_test.yaml finds CONTAINER_MEMORY_LIMIT, CONTAINER_CPU_LIMIT and JAVA_OPTS at env[19], env[20] and env[21]. What has to hold is their relative order, because $(VAR) expands only from earlier entries. An env var added upstream shifts the indices, so a Strimzi bump turns the test red with no real defect. Asserting the order of the three names would survive that. #4665 tracks the same kind of position-based selection for whole documents.

kafka.javaToolOptions in packages/apps/kafka/templates/_jvm.tpl truncates the memory limit to an integer. For memory: 1.1Gi it renders -XX:MaxRAM=1181116006, while Kubernetes rounds the same quantity up to 1181116007. One byte under the limit is harmless. Rounding up would still match what the downward API hands the operator JVM.

主要言語
Go
スター
2.2k
フォーク
209
平均マージ
3日 9時間
マージ済み PR(30日)
242

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cozystack/cozystack のほかの issue

cozystack/cozystack の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。