[STORM-3717] Fail function won’t be called if msgId was not entered in emmit

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java

調査の方向性

まず、報告された Spout の動作を再現します。msgId なしで emit し、その後 fail メソッドに到達するかどうかを確認します。周辺の Storm callback フローを確認し、意図した修正がデフォルトの msgId、warning または exception、あるいは既存の動作の文書化のいずれなのかを判断します。合意された動作と regression test が用意されれば完了です。

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

説明

imported-jira-issue rfe

Hey, 

When I tried to use your technology, I tried to implement fail method on Spout (implementing BaseRichBolt), on the spout I emitted without msgId and the fail function was not even called even though I implemented it.

I was stuck on this for around 7 hours trying to figure why my code doesn’t reach fail.

 

I think the current flow is not intuitive, I think default msgId (-1 or something) for msg without msgId or even a warning or exception is better than the current flow.

 

I would like to hear your opinion about that if you still support this flow about why 

you prefer to implement like that.

 

thank you!


Originally reported by nadi488, imported from: Fail function won’t be called if msgId was not entered in emmit
  • status: Open
  • priority: Major
  • resolution: Unresolved
  • imported: 2025-01-24
主要言語
Java
スター
6.7k
フォーク
4k
平均マージ
1日 5時間
マージ済み PR(30日)
86

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

apache/storm のほかの issue

apache/storm の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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