Одиночный сбой очистки helper навсегда занимает слот подключения
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
Research direction
Start with HelperSession.cs:87–97, HelperServer.cs:46–66, and HelperLeasePool.cs:9–14; trace how cleanup failures affect the lease and session directory. Reproduce the failure with a fake StopAsync that throws once, then check that a retry can complete cleanup and a later session can acquire the slot. Done means failed cleanup remains retryable, and file deletion after a confirmed engine stop does not block new connections.
Written by the indexing model from the issue text.
Description
Приоритет P1 · milestone 0.4.1
Если остановка движка или удаление каталога сессии помощника завершится исключением, последующие подключения могут получать «A privileged engine already owns this resource» до перезапуска помощника.
Воспроизведение с фейком
- Занять слот через HelperSession.
- Закрыть клиентскую сессию, заставив фейковый StopAsync один раз выбросить исключение.
- Попробовать занять слот второй сессией. Первая очистка не повторяется и захват отклоняется.
Причина: HelperSession.cs:87–97 выполняет остановку, Dispose и удаление каталога последовательно, освобождая lease в самом конце. HelperServer.cs:63–66 ожидает Dispose один раз, а :46–52 только логирует ошибку завершённой задачи и теряет ссылку. HelperLeasePool.cs:9–14 продолжает отклонять новые подключения.
Доказательство: изолированный прогон получил A privileged engine already owns this resource. StopAttempts=1; old session directory remains=True.
Ожидаемо: сбой очистки остаётся доступен для повторной попытки. После подтверждённой остановки движка временная ошибка удаления файлов не блокирует все последующие подключения.
Направление исправления: удерживать состояние незавершённой очистки для повторов. Разделить освобождение слота после безопасной остановки и отдельное удаление каталога сессии.
Связано: #257, #182.
Аудит ffa65648867139f9e45c15f4b635a83c1ff52c1b.
- Dominant language
- C#
- Stars
- 5
- Forks
- 1
- Avg merge
- 23m
- Merged PRs (30d)
- 144
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from endercodezz/BYDLO
-
bug github_actions
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
endercodezz/BYDLO#336 ·
Maintainers usually reply within 1 day
-
bug network
Difficulty 4/5 3-5 days Newbie friendliness 63/100
endercodezz/BYDLO#343 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 53/100
endercodezz/BYDLO#341 ·
Maintainers usually reply within 1 day
-
bug network
Difficulty 4/5 3-5 days Newbie friendliness 56/100
endercodezz/BYDLO#340 ·
Maintainers usually reply within 1 day
-
bug network
Difficulty 4/5 3-5 days Newbie friendliness 53/100
endercodezz/BYDLO#339 ·
Maintainers usually reply within 1 day
All issues in endercodezz/BYDLO
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
Unity-Technologies/unity-agent-plugin#118 ·
Maintainers usually reply within 1 day
-
The Recommended preset turns on Import Uno DSP, which only works with the Material themePossibly taken @agneszitte claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
unoplatform/uno.templates#2388 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
eyalgolan/statecraft-israel#2732 ·
Maintainers usually reply within 1 day
-
要トリアージ
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
kind/chore status/draft
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Altinn/altinn-events#1158 ·
Maintainers usually reply within 1 day