[Feature Request] Stack trace on deadlock exception improvements

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
backend

調査の方向性

まず PR #626 と、そこで導入された deadlock exception の実装を読んでください。sandboxing を無効にした場合の動作を確認し、deadlock を起こしているスレッドの取得した stack trace を検証するテストを追加し、Thread ID がない場合のメッセージもカバーしてください。3 つすべてのケースで要求された診断出力が生成されれば完了です。

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

説明

enhancement
Describe the solution you'd like

https://github.com/temporalio/sdk-python/pull/626 added a stack traces from the deadlocking thread, but there are three improvements we need to make to make sure this is working properly:

  1. Make this also work for users that have opted out of sandboxing (if, as suspected reading the PR, it doesn't actually work already)
  2. Add a test to confirm the deadlock stack trace represents (couldn't see such a test in the PR)
  3. We append (no frames available) or (failed getting frames: {err}) when we couldn't capture the threads trace, but we should also add something like (no thread ID available) if the earlier condition occurs where for some reason we don't have a thread ID at all.
主要言語
Python
スター
1.2k
フォーク
241
平均マージ
3日 2時間
マージ済み PR(30日)
49

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

temporalio/sdk-python のほかの issue

temporalio/sdk-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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