| Summary: | git clone hangs | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Martin Oberhuber <mober.at+eclipse> | ||||||||||
| Component: | Core | Assignee: | Project Inbox <egit.core-inbox> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||
| Severity: | critical | ||||||||||||
| Priority: | P3 | CC: | jens.baumgart, matthias.sohn, remy.suen | ||||||||||
| Version: | 1.0 | ||||||||||||
| Target Milestone: | 1.1 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Linux-GTK | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Martin Oberhuber
I should add that from the import wizard, killing Eclipse is all I can do ... thus losing state and potentially data. Created attachment 204582 [details]
My configuration details
Hm, I may have to eat my words ... when trying to reproduce, commandline git also hangs, so this may be a network connectivity problem ... still, in an ideal world I'd expect timeouts for this to work properly ? 1797 mober@szg-qa-lx2-64/local/mober/git$git clone git://git.eclipse.org/gitroot/cdt/org.eclipse.cdt.git Cloning into org.eclipse.cdt... remote: Counting objects: 445828, done. remote: Compressing objects: 100% (74987/74987), done. Receiving objects: 0% (1921/445828), 356.00 KiB | 112 KiB/s Created attachment 204624 [details]
Thread dump after hitting the cancel button
Thinking this over again, I believe the main issue is that "cancel" did not work for the git clone operation when it hung due to network issues.
Attached is a 2nd thread dump from Eclipse still hanging after I hit the cancel button. Since the modal dialog was in front, I could only kill my Eclipse. I think that any network operation needs to be cancelable.
I tried this with EGit 1.2 current nightly build and I can cancel clone operation in the Clone Wizard started from "Import projects from git". Clicking the red button to the right of the progress bar does cancel the clone operation (tried several times). Also please check the global "Remote connection timeout" in "Preferences > Team > Git". Before EGit commit 96282c0e32a2b4e02d1a5c3dd8e102143fe02f3c (submitted to master on 2011, July 29, i.e. after 1.0 was released) the default for this parameter was 0 which means JGit would never timeout hanging connections. Now the default timeout is 30 seconds. Could you retry with latest nightly ? Created attachment 204821 [details]
screenshot showing where to cancel clone operation
Checked the current EGit: started a clone operation and pulled the network cable. Afterwards I could cancel the operation. I close the bug. Please reopen the bug if the problem reappears. |