git clone from concurrent clients within container causes socket close error

未關閉
#240 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
git, java
領域
networking

研究方向

The report gives no JGit source file or test; start by reading the clone-related comments and tracing the clone path involved in concurrent operations. Try to reproduce the socket-close failure with 10 concurrent clients on JGit 6.10.1 and compare against 5.11.0. Done means identifying and fixing the regression with a test that verifies concurrent clones succeed.

由索引模型根據 Issue 內容生成。

描述

need info

jgit version 6.10.1.202505221210-r with java 11 results in 1 or 2 failures ( socker close error) when 10 clients execute git clone concurrently within same container. 5.11.0.202103091610-r did not have this issue

java.lang.RuntimeException: Failed to clone git repository: https://gitlaburl......./numbus.git, Reason: Socket closed
at com.dale.numbus.deployment.DeployService.prepareForDeployment(DeployService.java:152)
at com.dale.numbus.deployment.DeployService.startDeployment(DeployService.java:64)
at com.dale.numbus.deployment.DeploymentController.lambda$start$0(DeploymentController.java:140)
at io.micronaut.scheduling.instrument.InvocationInstrumenterWrappedRunnable.run(InvocationInstrumenterWrappedRunnable.java:47)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)

主要語言
Java
星號
427
分支
116
PR 合併指標
30 天內沒有已合併 PR

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

eclipse-jgit/jgit 的其他 Issue

查看 eclipse-jgit/jgit 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。