Skip to content

Failed to update size for repository with 2 replicas of gitea during concurrent git push #29156

Closed
@govind32088

Description

@govind32088

Description

2024/02/13 09:40:18 ...s/repository/push.go:38:handler() [E] pushUpdate failed: Failed to update size for repository: updateSize: lstat /data/git/gitea-repositories/gitea_admin/govindtest.git/refs/heads/branch-1707817199-2f7ffc69e8f6457d817b615cfaf193be.lock: no such file or directory

I am running gitea with 2 replicas on kubernetes and running concurrent request towards gitea using shell script which perform following:

image

I am running above script concurrently with 50 request, I am getting 'pushUpdate Failed' Error. I am running the shell script using WSL and on client side I am not getting any error but in Gitea log i can see this problem. In the Gitea UI , I can see 46 branch were successfully created but 4 were missing due to 'pushUpdate Failed' Error

In the past same issue is raised and based on below ticket this issue was already fixed and merged.
#22386

Gitea Version

1.21.0 (Gitea 9.6.0 tar helm chart)

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

git version 2.40.1

Operating System

windows

How are you running Gitea?

using Kubernetes

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions