An occasional problem:Unable to load implementation class JsonFormat
まだ誰も着手していません。
評価
調査の方向性
まず、EventFormatProvider.getInstance().resolveFormat(JsonFormat.CONTENT_TYPE)、JsonFormat の実装、および SPI の登録経路を追跡します。報告された deployment とバージョンを使って、影響を受けたノードと正常なノードの動作を比較します。断続的なロード失敗を再現または説明し、具体的な修正変更を特定できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I have a cluster that deploys the same image, with a total of six nodes. Occasionally, some nodes do not load the JsonFormat class,
The relevant codes are as follows
EventFormat eventFormat = EventFormatProvider.getInstance()
.resolveFormat(JsonFormat.CONTENT_TYPE);
if (eventFormat == null) {
logger.info("resolveFormat failed,force retry..");
eventFormat = new JsonFormat().withForceNonJsonDataToString();
if (eventFormat != null) {
logger.info("resolveFormat failed,retry success..");
}
EventFormatProvider.getInstance().registerFormat(eventFormat);
return eventFormat;
i observed that the SPI mechanism did not take effect on the problem node and manually instantiated the successful log of the JsonFormat class.
I can't understand why this situation occurs. It occurs relatively infrequently, but it does exist. The current solution is not elegant enough, and I hope to receive help.
this is my version
- 主要言語
- Java
- スター
- 446
- フォーク
- 172
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cloudevents/sdk-java のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
cloudevents/sdk-java#731 · リアクション 1 件 ·
-
bug
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
cloudevents/sdk-java#697 · コメント 3 件 ·
-
Spring CloudEventMessageConverter produce a null pointer exception if initial message header map is null対応中かも @prashantdotnaagar が 79 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
cloudevents/sdk-java#689 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
cloudevents/sdk-java#660 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
cloudevents/sdk-java#748 ·
cloudevents/sdk-java の issue をすべて見る
似ている issue
-
[destination-snowflake] Custom domains rejected unlike source connections対応中かも @kuza55 が今日担当しました。 オープンautoteam community connectors/destination/snowflake team/use
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
area-dashboard
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
component/operate kind/feature-request
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
Forge coverage prompts carry text the agent cannot act on対応中かも @graalvmbot が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
oracle/graalvm-reachability-metadata#10572 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
IBM/sample-app-mod#55 ·