Project

General

Profile

Actions

Bug #20589

open

git repository is full of pack_tmp and idx_tmp files in 7.0

Added by Nicolas CHARLES almost 3 years ago. Updated 5 months ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

I have a configuration-repository git with 3.4 Go of file slikes

gc_3024324805558075120.pack_tmp  gc_8963748319320174561.idx_tmp
gc_4065393425363431946.idx_tmp     gc_8963748319320174561.pack_tmp
gc_4065393425363431946.pack_tmp  gc_9032135440682501564.idx_tmp
gc_4735211254661606721.idx_tmp     gc_9032135440682501564.pack_tmp

dating from the 1st december
git gc doesn't remove them

#/var/rudder/configuration-repository/.git/objects# git count-objects -v -H
warning: garbage found: /var/rudder/configuration-repository/.git/objects/pack/gc_2050152969671646544.pack_tmp
warning: garbage found: /var/rudder/configuration-repository/.git/objects/pack/gc_7939984065452016776.pack_tmp
count: 0
size: 0 bytes
in-pack: 682628
packs: 1
size-pack: 108.82 MiB
prune-packable: 0
garbage: 68
size-garbage: 3.58 GiB
Actions #2

Updated by Nicolas CHARLES almost 3 years ago

  • Description updated (diff)
Actions #3

Updated by Nicolas CHARLES almost 3 years ago

git reflog expire --expire-unreachable=now --all
git gc --prune=now 

doesn't work either

Actions #4

Updated by Nicolas CHARLES almost 3 years ago

 git repack && git prune-packed && git reflog expire --expire=1.month.ago && git gc --aggressive

neither
Actions #5

Updated by François ARMAND almost 3 years ago

  • Target version changed from 7.0.0~rc3 to 7.1.0~beta1
  • User visibility set to Operational - other Techniques | Rudder settings | Plugins

Root cause and analysis here: https://gitlab.com/gitlab-org/gitaly/-/issues/1656

These files appears when a git index-pack (during a git gc) is interrupted (likely by interactive user action like KILL -9, or oomkiller, or some other guard).

Once the git gc has ended (correctly or not), they are never used anymore (nor cleaned-up by git, which is bad).
They can be removed by hand.

> in rudder, we need to had that to the git maintenance batch.
> we also need to be sure to not start a git gc if another is already running
Actions #6

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 7.1.0~beta1 to 7.1.0~beta2
Actions #7

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 7.1.0~beta2 to 7.1.0~rc1
Actions #8

Updated by Alexis Mousset over 2 years ago

  • Target version changed from 7.1.0~rc1 to 7.2.0~beta1
Actions #9

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 7.2.0~beta1 to 7.2.0~rc1
Actions #10

Updated by Alexis Mousset about 2 years ago

  • Target version changed from 7.2.0~rc1 to 7.3.0~beta1
  • Regression set to No
Actions #11

Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 7.3.0~beta1 to 7.3.0~rc1
Actions #12

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.3.0~rc1 to 7.3.0
Actions #13

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.3.0 to 7.3.1
Actions #14

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.3.1 to 7.3.2
Actions #15

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.3.2 to 7.3.3
Actions #16

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.3.3 to 7.3.4
Actions #17

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.3.4 to 7.3.5
Actions #18

Updated by Alexis Mousset over 1 year ago

  • Target version changed from 7.3.5 to 7.3.6
Actions #19

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.6 to 7.3.7
Actions #20

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.7 to 7.3.8
Actions #21

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.8 to 7.3.9
Actions #22

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.9 to 7.3.10
Actions #23

Updated by Vincent MEMBRÉ 12 months ago

  • Target version changed from 7.3.10 to 7.3.11
Actions #24

Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 7.3.11 to 7.3.12
Actions #25

Updated by Vincent MEMBRÉ 9 months ago

  • Target version changed from 7.3.12 to 7.3.13
Actions #26

Updated by Vincent MEMBRÉ 9 months ago

  • Target version changed from 7.3.13 to 7.3.14
Actions #27

Updated by Vincent MEMBRÉ 7 months ago

  • Target version changed from 7.3.14 to 7.3.15
Actions #28

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 7.3.15 to 7.3.16
Actions #29

Updated by Vincent MEMBRÉ 5 months ago

  • Target version changed from 7.3.16 to 7.3.17
Actions

Also available in: Atom PDF