Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 382890

Summary: Timeout Exceeded on Repository
Product: [ECD] Orion Reporter: George McKinney <george>
Component: GitAssignee: Szymon Brandys <Szymon.Brandys>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: eclipse, libingw, maciej.bendkowski, malgorzata.tomczyk, pwebster
Version: 0.5   
Target Milestone: 5.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
I think I have too many repositories. none

Description George McKinney CLA 2012-06-18 14:24:47 EDT
Created attachment 217510 [details]
I think I have too many repositories.

I think I have too many repositories.

When I try to see them after 2 seconds it says Timeout Exceeded.
This affects Git Clone and Listing Repositories. 

I was doing a presentation and I couldn't figure out why it wasn't working:
- Slides: http://www.slideshare.net/georgemck/rapid-app-development-for-phonegap
- Video: http://experts.adobeconnect.com/p9tg11pddvf

George
Comment 1 Szymon Brandys CLA 2012-06-19 08:07:38 EDT
Sorry for that. I think it is not related to the number of repos. We use Orion tasks for getting the list of repos and their details. When you see it next time, could you send me the console log?
Comment 2 libing wang CLA 2012-06-19 11:58:45 EDT
 I tried to clone git.eclipse.org/gitroot/platform/eclipse.platform.ui.git/ and after 6 or 7 minutes, it stopped with error :

TypeError
 built-git-repository.js:1539
b.Deferred.reject.errback built-git-repository.js:1539
b.Deferred.reject.errback built-git-repository.js:1539
g built-git-repository.js:1538
b.Deferred.h built-git-repository.js:1537
f built-git-repository.js:1538
b.Deferred.resolve.callback built-git-repository.js:1539
n built-git-repository.js:1626
f built-git-repository.js:1624
k
Comment 3 libing wang CLA 2012-06-19 12:23:07 EDT
I tried to clone again and it worked.
Noe if I go to git status page, it shows me properly.
But if I change a file, say , bundles/org.eclipse.e4.core.commands/src/org/eclipse/e4/core/commands/CommandServiceAddon.java, I got timeout exceeded errro and I saw console errors like below:


Error
 built-git-status2.js:2303
e built-git-status2.js:2303
b._ioSetArgs.j built-git-status2.js:2301
h built-git-status2.js:2218
b.Deferred.g built-git-status2.js:2217
e built-git-status2.js:2218
b.Deferred.reject.errback built-git-status2.js:2219
d built-git-status2.js:2304
k built-git-status2.js:2304
Error
 built-git-status2.js:2219
b.Deferred.reject.errback built-git-status2.js:2219
b.Deferred.reject.errback built-git-status2.js:2219
h built-git-status2.js:2218
b.Deferred.g built-git-status2.js:2217
e built-git-status2.js:2218
b.Deferred.reject.errback built-git-status2.js:2219
d built-git-status2.js:2304
k built-git-status2.js:2304
Error
 built-git-status2.js:2219
b.Deferred.reject.errback built-git-status2.js:2219
b.Deferred.reject.errback built-git-status2.js:2219
c.GitService.c._handleGitServiceResponseError built-git-status2.js:3897
b.hitch built-git-status2.js:2196
c.GitService.c.getGitCloneConfig.d.xhrGet.error built-git-status2.js:3879
b._ioSetArgs.m built-git-status2.js:2302
h built-git-status2.js:2218
b.Deferred.g built-git-status2.js:2217
e built-git-status2.js:2218
b.Deferred.reject.errback built-git-status2.js:2219
d built-git-status2.js:2304
k built-git-status2.js:2304
Error
 built-git-status2.js:2219
b.Deferred.reject.errback built-git-status2.js:2219
b.Deferred.reject.errback built-git-status2.js:2219
h built-git-status2.js:2218
b.Deferred.g built-git-status2.js:2217
e built-git-status2.js:2218
b.Deferred.reject.errback built-git-status2.js:2219
d built-git-status2.js:2304
k built-git-status2.js:2304
Error
 built-git-status2.js:2219
b.Deferred.reject.errback built-git-status2.js:2219
b.Deferred.reject.errback built-git-status2.js:2219
d built-git-status2.js:2304
k
Comment 4 libing wang CLA 2012-06-20 12:35:32 EDT
some updates:
I was able use today's build(20120620-1034) on orion.eclipse.org to show the git status on the big repo.

Then I downloaded the matching version and ran localhost.

1.I tried to clone git.eclipse.org/gitroot/platform/eclipse.platform.ui.git into localhost but I've got the waiting cursor for 15 minutes and got nothing.

2. I switched to git bash and it took me about 3 minutes to clone.

3. Then I linked the server folder into Orion running from my local host.

4. Git log worked.

5. For the very first time, git status gave me time out error like before.

6. then I was wondering if the old git status works or not. I got the same time out error.

7. Changed the hash to the new git status again. And this time it was fast and worked.

8. I tried to reproduce the timeout issue but never reproduced it anymore, even after clear cache...
Comment 5 Maciej Bendkowski CLA 2012-09-20 07:36:35 EDT
If I may share my thoughts on this topic, I've noticed this bug may happen quite often on a local server. In my situation it's connected to a background process which performs a lot of I/O operations. It seems to me, that the server does not have enough time to response. I'm almost sure the timeout is hardcoded somewhere in the client side. Since we load many of the data in an asynchronous manner, maybe it should be just set to a larger constant due to the number of xhr calls?
Comment 6 Rafael Chaves CLA 2012-09-27 04:27:13 EDT
Seeing this on orionhub.org right now.

Coincidence or not, I was trying to reproduce another bug, and after I created a few repositories (cloned from the same master), I started getting the timeout error.

true 

built-git-repository.js:3167
Error
 built-git-repository.js:1874
f built-git-repository.js:1874
b._ioSetArgs.l built-git-repository.js:1872
g built-git-repository.js:1789
b.Deferred.h built-git-repository.js:1788
f built-git-repository.js:1789
b.Deferred.reject.errback built-git-repository.js:1790
f built-git-repository.js:1875
l built-git-repository.js:1875
Error
 built-git-repository.js:1790
b.Deferred.reject.errback built-git-repository.js:1790
b.Deferred.reject.errback built-git-repository.js:1790
g built-git-repository.js:1789
b.Deferred.h built-git-repository.js:1788
f built-git-repository.js:1789
b.Deferred.reject.errback built-git-repository.js:1790
f built-git-repository.js:1875
l built-git-repository.js:1875
Error
 built-git-repository.js:1790
b.Deferred.reject.errback built-git-repository.js:1790
b.Deferred.reject.errback built-git-repository.js:1790
d.GitService.d._handleGitServiceResponseError built-git-repository.js:3018
b.hitch built-git-repository.js:1767
d.GitService.d.getGitClone.c.xhrGet.error built-git-repository.js:2999
b._ioSetArgs.o built-git-repository.js:1873
g built-git-repository.js:1789
b.Deferred.h built-git-repository.js:1788
f built-git-repository.js:1789
b.Deferred.reject.errback built-git-repository.js:1790
f built-git-repository.js:1875
l built-git-repository.js:1875
Error
 built-git-repository.js:1790
b.Deferred.reject.errback built-git-repository.js:1790
b.Deferred.reject.errback built-git-repository.js:1790
g built-git-repository.js:1789
b.Deferred.h built-git-repository.js:1788
f built-git-repository.js:1789
b.Deferred.reject.errback built-git-repository.js:1790
f built-git-repository.js:1875
l built-git-repository.js:1875
Error
 built-git-repository.js:1790
b.Deferred.reject.errback built-git-repository.js:1790
b.Deferred.reject.errback built-git-repository.js:1790
f built-git-repository.js:1875
l built-git-repository.js:1875
Comment 7 Rafael Chaves CLA 2012-09-27 04:28:44 EDT
...and deleting the folders created by the successive clone operations indeed addressed the issue.
Comment 8 Rafael Chaves CLA 2012-09-27 04:38:35 EDT
Reproduced it again by adding more repos.

It seems if this GET call takes more than 5s:

http://orionhub.org/gitapi/clone/workspace/cH

the timeout error occurs. For me, in the success case (2 repos) is taking around 4-4.9s to complete. If I add another repo, it goes beyond 5s, and starts timing out.
Comment 9 Szymon Brandys CLA 2014-04-28 06:35:41 EDT
I think this was fixed some time ago. Let us know if you still see it.