Bug: Running `.exec` on `SqlServerContainer` instance hangs indefinitely
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 42/100
研究方向
從 SqlServerContainer 的 exec 進入點開始,重現 issue 中完全相同的 sqlcmd CREATE TABLE 命令,並將其與可正常運作的 SELECT 1 範例進行比較。當 CREATE TABLE 命令透過 exec 正常結束,就算完成,這與在容器內部執行時的情況相同。
由索引模型根據 Issue 內容生成。
描述
Describe the bug
I am trying to create a table within a SqlServer container during start up. I am running the necessary command via the exec method, but said method just hangs and never exits.
Additional info: When bashing into the container and running the command, it works just fine and the process does not hang. Furthermore, running a different SQL query via the exec method such as SELECT 1 works as well.
To Reproduce
with SqlServerContainer(image="mcr.microsoft.com/mssql/server:2022-CU12-ubuntu-22.04") as container:
container.exec(
"/opt/mssql-tools/bin/sqlcmd -U SA -P 1Secure*Password1 -d tempdb -Q 'CREATE TABLE test_table (id INT PRIMARY KEY)'"
)
Runtime environment
OS: Windows 11
Python version: 3.12.10
Docker version: 28.4.0, build d8eb465
Testcontainers version: 4.13.2
- 主要語言
- Python
- 星號
- 2.3k
- 分支
- 389
- 平均合併
- 4 小時 40 分鐘
- 30 天內合併 PR
- 1
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
testcontainers/testcontainers-python 的其他 Issue
-
Bug: file descriptor leak in HttpWaitStrategy可能已有人在做 @cpruijsen 於 21 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 88/100
testcontainers/testcontainers-python#1115 · 1 個 reaction ·
維護者通常 1 天內回覆
-
TrinoContainer.get_connection_url() returns the internal port, not the mapped host port可能已有人在做 @rusackas 於 39 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
testcontainers/testcontainers-python#1111 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 67/100
testcontainers/testcontainers-python#1086 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
testcontainers/testcontainers-python#578 · 5 則留言 ·
維護者通常 1 天內回覆
-
Bug: `Reaper.delete_instance()` raises 409 and keeps the dead reaper when ryuk was killed from outside可能已有人在做 @RitiGrover 於 7 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 76/100
testcontainers/testcontainers-python#1125 ·
維護者通常 1 天內回覆
查看 testcontainers/testcontainers-python 的全部 Issue
相似的 Issue
-
dead_air_detection fails on m4a/AAC audio ("Could not decode audio: Format not recognised") for uploads, base64 and own-bucket recordings可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
future-agi/future-agi#3317 ·
維護者通常 1 天內回覆
-
Failed agent type collection replaces a complete snapshot with partial data可能已有人在做 @SahilKumar75 今天認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 2 天內回覆