CLI-3550: Confluent kafka link create is not providing feedback from config.txt that the tasks are in error and has no documentation on what is expected in the config.txt file.

オープン
#3,072 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go
領域
cli, documentation

調査の方向性

confluent kafka link create、その --config の処理、および confluent kafka link task list に関する Confluent CLI の実装とドキュメントから始めます。提供された config.txt のケースを v4.21.0 または現行バージョンで再現し、その後、必要な ACL、topic、consumer-group フィルターを文書化し、link の作成時に設定エラーが表面化することを確認します。

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

説明

enhancement

Confluent CLI is lacking documentation on how to pass through arguments for syncing consumer offsets, ACL's and auto creating mirror topics.


confluent kafka link create $LINK_NAME \

--cluster $DEST_CLUSTER_ID \

--source-cluster $SOURCE_CLUSTER_ID \

--source-bootstrap-server $BOOTSTRAP_ENDPOINT \

--source-api-key $API_KEY \

--source-api-secret $API_SECRET \

--destination-cluster $DEST_CLUSTER_ID \

--config config.txt

# config.txt: 
auto.create.mirror.topics.enable=true
consumer.offset.sync.enable=true
acl.sync.enable=true

This creates the cluster link and reports no errors in the cli but when checking the tasks on the link they're reporting status in_error:

confluent kafka link task list --link [link-name]

---------------------+----------+------------------------------------
  AclSync            | IN_ERROR | MISCONFIGURATION_ERROR: "ACL
                     |          | migration is enabled but
                     |          | acl.filters is not set. Please
                     |          | set acl.filters to proceed
                     |          | with ACL migration."
  AutoCreateMirror   | IN_ERROR | MISCONFIGURATION_ERROR:
                     |          | "auto.create.mirror.topics.enable
                     |          | is true but no topic filters
                     |          | are specified. No topics will be
                     |          | mirrored."
  ConsumerOffsetSync | IN_ERROR | MISCONFIGURATION_ERROR:
                     |          | "consumer.offset.sync.enable
                     |          | is true but no consumer
                     |          | group filters are specified.
                     |          | No consumer offsets will be
                     |          | migrated."
  TopicConfigsSync   | ACTIVE   |

There are no hints in the cli for what is expected here, there is no documentation that I can find to get consumer offsets ACL's to sync or auto-create mirror topics via the cli

If I hadn't caught this before my DR failover, consumers wouldn't know where to begin with processing.

this is on confluent version v4.21.0

to temporarily resolve this I was able to create the link in the UI.

主要言語
Go
スター
82
フォーク
37
平均マージ
1日 13時間
マージ済み PR(30日)
22

環境構築

はじめの一歩

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

confluentinc/cli のほかの issue

confluentinc/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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