Question about repo sync pending.

421 views
Skip to first unread message

SeongUk Baek

unread,
Mar 21, 2014, 4:14:46 AM3/21/14
to repo-d...@googlegroups.com
Hello

I'm using Gerrit 2.8.3

Sometimes, repo sync pending about 4hours like below.

Anybody know this problem?

10:47:43,076 WARN  - Total 123 (delta 0), reused 102 (delta 0)
10:48:03,947 WARN  - Total 123 (delta 0), reused 104 (delta 0)
10:49:07,798 WARN  - Total 143 (delta 0), reused 113 (delta 0)
10:49:45,089 WARN  - Total 137 (delta 0), reused 114 (delta 0)
10:51:37,802 WARN  - 
10:51:37,802 WARN  - ... A new repo command ( 1.21) is available.
10:51:37,802 WARN  - ... You should upgrade soon:
10:51:37,802 WARN  - 
10:51:37,802 WARN  -     cp /home/seonguk.baek/my_branch/.repo/repo/repo /usr/local/bin/repo
10:51:37,802 WARN  - 
15:00:42,050 WARN  - Checking out files:  37% (62/165)   
15:00:42,066 WARN  - Checking out files:  38% (63/165) 
15:00:42,066 WARN  - Checking out files:  39% (65/165)   
15:00:42,066 WARN  - Checking out files:  40% (66/165)   
15:00:42,066 WARN  - Checking out files:  41% (68/165)   
15:00:42,219 WARN  - Checking out files:  42% (70/165)   
15:00:42,235 WARN  - Checking out files:  43% (71/165)   
15:00:42,238 WARN  - Checking out files:  44% (73/165)   
15:00:42,246 WARN  - Checking out files:  45% (75/165)   
15:00:42,254 WARN  - Checking out files:  46% (76/165)   
15:00:42,262 WARN  - Checking out files:  47% (78/165)   


And I have a question about repo sync option

When I run repo sync, I added -m option it is so fast.

why -m option is so fast??

Magnus Bäck

unread,
Mar 24, 2014, 7:40:47 AM3/24/14
to repo-d...@googlegroups.com
On Friday, March 21, 2014 at 09:14 CET,
SeongUk Baek <baeks...@gmail.com> wrote:

> I'm using Gerrit 2.8.3
> Sometimes, repo sync pending about 4hours like below.
> Anybody know this problem?
> 10:47:43,076 WARN - Total 123 (delta 0), reused 102 (delta 0)
> 10:48:03,947 WARN - Total 123 (delta 0), reused 104 (delta 0)
> 10:49:07,798 WARN - Total 143 (delta 0), reused 113 (delta 0)
> 10:49:45,089 WARN - Total 137 (delta 0), reused 114 (delta 0)
> 10:51:37,802 WARN -
> 10:51:37,802 WARN - ... A new repo command ( 1.21) is available.
> 10:51:37,802 WARN - ... You should upgrade soon:
> 10:51:37,802 WARN -
> 10:51:37,802 WARN - cp
> /home/seonguk.baek/my_branch/.repo/repo/repo /usr/local/bin/repo
> 10:51:37,802 WARN -
> 15:00:42,050 WARN - Checking out files: 37% (62/165)

Are these really all the log entries? I would've expected to see
entries for when the first 61 gits are checked out.

> 15:00:42,066 WARN - Checking out files: 38% (63/165)
> 15:00:42,066 WARN - Checking out files: 39% (65/165)
> 15:00:42,066 WARN - Checking out files: 40% (66/165)
> 15:00:42,066 WARN - Checking out files: 41% (68/165)
> 15:00:42,219 WARN - Checking out files: 42% (70/165)
> 15:00:42,235 WARN - Checking out files: 43% (71/165)
> 15:00:42,238 WARN - Checking out files: 44% (73/165)
> 15:00:42,246 WARN - Checking out files: 45% (75/165)
> 15:00:42,254 WARN - Checking out files: 46% (76/165)
> 15:00:42,262 WARN - Checking out files: 47% (78/165)

Does it help to run a non-parallel sync ('repo sync -j1')?
Has Repo deadlocked itself or is it waiting for a Git command?
Looking at the pstree output might be helpful.

> And I have a question about repo sync option
> When I run repo sync, I added -m option it is so fast.
> why -m option is so fast??

Not sure what you mean here -- are you running

repo sync -m default.xml

and getting a performance improvement? That would be very surprising.

--·
Magnus Bäck | Software Engineer, Development Tools
magnu...@sonymobile.com | Sony Mobile Communications

SeongUk Baek

unread,
Apr 2, 2014, 4:10:47 AM4/2/14
to repo-d...@googlegroups.com
Thank you!! Magnus Bäck 
 
I attached the other log like below.

12:46:21,229 WARN - Total 11 (delta 0), reused 6 (delta 0)
12:46:21,577 WARN - Total 11 (delta 0), reused 7 (delta 0)
12:46:21,614 WARN - Total 38 (delta 0), reused 31 (delta 0)
12:46:22,403 WARN - Total 12 (delta 1), reused 8 (delta 1)
12:46:23,190 WARN - Total 205 (delta 77), reused 192 (delta 77)
12:46:23,227 WARN - Total 8 (delta 0), reused 4 (delta 0)
12:46:24,200 WARN - Total 28 (delta 0), reused 18 (delta 0)
16:01:18,448 WARN -
16:01:18,448 WARN - project android/art/
16:01:20,619 INFO - Updating e953b60..cb80d68
16:01:20,619 INFO - Fast-forward


We made mirror repositories in build servers.
And run repo init with --reference option for time and storage saving.

First repo init/sync is no problem.
But when I try repo sync after about a week in same workspace, I can see the pending situation.

And about -m option, I didn't mean the default.xml.
If revision are included in xml file, it’s very fast.
Reply all
Reply to author
Forward
0 new messages