F# sidecar is killed on shutdown while a compiler warm-up request holds the transport

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp, fsharp, rust
領域
backend, testing

調査の方向性

Start with src/sharplsp/src/sidecar/manager/shutdown.rs at request_shutdown_ack, then read e2e_modules::sidecar_shutdown::test_fsharp_sidecar_acknowledges_shutdown_and_exits_on_its_own and the sidecar shutdown protocol. Run cargo nextest run -p sharplsp under load to reproduce the intermittent failure. Done when shutdown pre-empts the warm-up, the sidecar acknowledges and exits on its own, and the e2e test passes.

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

説明

bug

Release: v0.33.0 (present on main at e56394f5)

Where: src/sharplsp/src/sidecar/manager/shutdown.rs:44-48, request_shutdown_ack

Repro: Run the full Rust e2e suite under load (cargo nextest run -p sharplsp). e2e_modules::sidecar_shutdown::test_fsharp_sidecar_acknowledges_shutdown_and_exits_on_its_own fails intermittently. It passes when run alone.

Log from the failure:

INFO  shutdown: Shutting down sidecar sidecar=F# (FCS)
WARN  shutdown: Sidecar request did not settle before shutdown sidecar=F# (FCS)   (+1.0 s)
WARN  shutdown: Killing sidecar sidecar=F# (FCS) acknowledged=false
WARN  warm_up: Compiler warm-up stopped sidecar=F# (FCS) error=sidecar closed connection

Expected: Shutdown cancels or pre-empts the in-flight background warm-up, the sidecar acknowledges shutdown and exits on its own ([SIDECAR-SHUTDOWN-PROTOCOL]).

Actual: The warm-up request holds the transport lock beyond ACK_BUDGET, so shutdown never sends the acknowledgement request and hard-kills the sidecar.

主要言語
TypeScript
スター
185
フォーク
12
平均マージ
7時間 33分
マージ済み PR(30日)
63

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

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

はじめの一歩

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

Nimblesite/SharpLsp のほかの issue

Nimblesite/SharpLsp の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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