Project

General

Profile

Actions

Defect #8857

closed

Git: Too long in fetching repositories after upgrade from 1.1 or new branch at first time

Added by Paul Wilson over 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Low
Assignee:
Toshi MARUYAMA
Category:
SCM
Target version:
Start date:
2011-07-20
Due date:
% Done:

100%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Our installation has been stable and using git repositories for well over one year now. Four months ago the upgrade from 1.1 (r5184) to 1.1.2 went without a hitch but this upgrade from 1.1.2 to 1.2.0 or 1.2.1 (I tried both revs with the same result) just isn't working.

Following the upgrade, selecting on the 'repository' tab in any project stops everything but nothing is added to the log. Symptoms are the same when run with either webrick or mongrel_rails.

Selecting on the 'repository' tab spawns a process:

git --git-dir <path to project's repository> log --no-color --encoding=UTF-8 --raw --date=iso --pretty=fuller --reverse feature/12591_threadedMessage

but the process never finishes and Ruby consumes most of the CPU until the deamon is killed.

The git repository is local to this machine and I can execute the command interactively as the user that owns the redmine deamon and results are nearly immediate.

Prior to release 1.2.0, this was working flawlessly.

The problem wasn't immediately evident and we operated for nearly two full days until we became aware of it when someone tried to browse a repository. As the schema upgrade in 1.2 only added columns to some tables in support of the private issues feature, we were able to safely roll back the software version to 1.1.2 while keeping the upgraded database schema ad not losing two days of activity.

O/S info:

SUSE Linux Enterprise Server 10 (x86_64)

VERSION = 10
PATCHLEVEL = 1

MySQL versions:

local client version 5.0.26

remote server version 5.0.51a-community-log MySQL Community Edition

git version

1.7.0.5

RAILS_ENV=production ruby script/about

About your application's environment

Ruby version 1.8.6 (x86_64-linux)
RubyGems version 1.3.6
Rack version 1.1
Rails version 2.3.11
Active Record version 2.3.11
Active Resource version 2.3.11
Action Mailer version 2.3.11
Active Support version 2.3.11
Application root /opt/redmine-1.2.0
Environment production
Database adapter mysql
Database schema version 20110511000000


Files

repo-setting.png (36.6 KB) repo-setting.png Toshi MARUYAMA, 2011-07-21 04:34
Optimize-Git-operations-for-new-branches.patch (15.2 KB) Optimize-Git-operations-for-new-branches.patch Modifies the changeset processing logic for Git to skip already processed revisions Jeremy Bopp, 2011-12-08 17:06
Alias-the-revision-and-scmid-properties-for-Git-Revi.patch (1.04 KB) Alias-the-revision-and-scmid-properties-for-Git-Revi.patch Fixes revision lookups for Git during changeset processing Jeremy Bopp, 2011-12-08 17:06
Optimize-Git-operations-for-new-branches.patch (15.3 KB) Optimize-Git-operations-for-new-branches.patch Modifies the changeset processing logic for Git to skip already processed revisions Jeremy Bopp, 2011-12-16 21:20
0001-Performance-improvements-for-git-repo-parsing.patch (5.57 KB) 0001-Performance-improvements-for-git-repo-parsing.patch Gergely Fábián, 2012-03-06 18:26
0001-Git-repo-parsing-optimization-without-db-query-group.patch (3.92 KB) 0001-Git-repo-parsing-optimization-without-db-query-group.patch Gergely Fábián, 2012-03-08 21:28
0001-Pass-revisions-to-git-log-via-stdin.patch (7.79 KB) 0001-Pass-revisions-to-git-log-via-stdin.patch Minimal changes to pass all revisions to git-log via stdin Jeremy Bopp, 2012-03-15 23:59
0002-Process-new-git-revisions-all-at-once-rather-than-pe.patch (14.3 KB) 0002-Process-new-git-revisions-all-at-once-rather-than-pe.patch Batch processes all new revisions for all branches in a single pass Jeremy Bopp, 2012-03-15 23:59

Related issues

Related to Redmine - Defect #7146: Git adapter lost commits before 7 days from database latest changesetClosedToshi MARUYAMA2010-12-21

Actions
Related to Redmine - Defect #1435: slow display of 'repository' tab for huge repository (pagination problem?)Closed2008-06-12

Actions
Related to Redmine - Defect #3449: Redmine Takes Too Long On Large Mercurial RepositoryClosedToshi MARUYAMA2009-06-05

Actions
Related to Redmine - Defect #4547: git: Very high CPU usage for a long time with large repositoryClosed2010-01-11

Actions
Related to Redmine - Defect #4716: Git repository performance fall on parsing new commits after 0.9.1 updateClosed2010-02-02

Actions
Related to Redmine - Defect #6013: git tab,browsing, very slow -- even after first timeClosed2010-08-02

Actions
Related to Redmine - Defect #9472: The git scm module causes an excess amount of DB traffic.Closed2011-10-26

Actions
Related to Redmine - Patch #10470: Efficiently process new git revisions in a single batchClosedToshi MARUYAMA

Actions
Has duplicate Redmine - Defect #8973: long git loop after upgrade to 1.2.1Closed2011-08-02

Actions
Actions

Also available in: Atom PDF