Considering making the Completion interface extend AutoCloseable
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- java
調査の方向性
この issue には、ファイル、テスト、エントリーポイントが何も記載されていません。まず Completion インターフェースを見つけ、同期および非同期のライフサイクルを追跡してください。完了とするには、AutoCloseable のサポートを追加するかどうか、また追加する場合にどのように追加するかについて、スコープを決定して文書化する必要があります。
索引モデルが issue の本文から書いたものです。
説明
Background and Intention
When using asynchronous processing completion, if a completion leak occurs, the system will be unable to consume furthur records which is quite dangerous. Therefore, avoiding completion leaks during development is a critical issue that requires attention.
However, in the context of collaboration and maintenance, as the complexity of the codebase increases and maintainers change over time, the likelihood of developers overlooking completion leaks also rises (e.g., complete being called across different locations in the call chain). I am considering whether there is a way to increase developers' awareness of completion leaks or to automatically check them.
Considerations
Perhaps one of the most effective approaches would be for developers to perform AST-based code analysis on their respective projects and integrate it into the CI pipeline. However, this is not something Decaton project can guarantee, and due to the cost, it is often not carried out.
Therefore, I am considering whether Completion could be annotated at the code level as something that must be completed, or whether it could be automatically completed at the appropriate time (though I haven't thought of a reasonable implementation for this).
Eventually, one idea I have is for Completion to extend the AutoCloseable interface. While this doesn't have any practical function, it would allow most developers' IDEs to detect the implementation of the AutoCloseable interface through their inspector tools, triggering warnings and serving as a pre-warning stuff.
I’d like to hear your thoughts on this. Thank you!
While this doesn't have any practical function ->
- In sync complete scenarios, after the
processmethod returns, the completion will be completed by decaton, so there is no need to control the completion process- In async complete scenarios, the completion is often completed during a callback, and completing it prematurely can cause issues.
- 主要言語
- Java
- スター
- 373
- フォーク
- 61
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
line/decaton のほかの issue
-
Modernize repository再び着手できるかも @Yang-33 が 186 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
-
Provide production check list再び着手できるかも @Yang-33 が 211 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
-
KIP-848 supportオープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
似ている issue
-
Test: Verify vault unlock max failed attempts and PIN brute-force protection対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
wultra/powerauth-tests#980 ·
-
Communication: Removing a link preview does nothing for some links対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンaccount bug communication lecture
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
line/centraldogma#1397 ·
メンテナーはふだん 2 日以内に返信
-
[Bug]: Fixed/recurring deposit accounts are treated as savings in ownership and listings対応中かも @Aana123 が今日担当しました。 オープンbug Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
apache/fineract-consumer-facing#252 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
ShaftHQ/SHAFT_ENGINE#7946 ·
メンテナーはふだん 1 日以内に返信