Skip to content

Big PRs may reach the updated_files column max size #34764

Open
@gkmw

Description

@gkmw

Description

We had an issue recently where a bigger PR could not be reviewed because of the following error:

[W] Could not update review for user 31, pull 5660, commit cbec5afd095ef0949dda05bd4a1124b356c78f06 and the changed files [...]  Error 1406 (22001): Data too long for column 'updated_files' at row 1                                                                                             
routers/web/repo/pull.go:766:viewPullFiles() [E] SyncUserSpecificDiff: Error 1406 (22001): Data too long for column 'updated_files' at row 1                                                                                                                                 │
HTTPRequest [I] router: completed GET /<repo>/pulls/128/files for <ip>, 500 Internal Server Error in 261.9ms @ repo/pull.go:938(repo.ViewPullFilesForAllCommitsOfPr)

Gitea Version

1.24.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Image

Git Version

No response

Operating System

No response

How are you running Gitea?

Gitea is running via helm chat on k8s.

Database

MySQL/MariaDB

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions