Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always running processes from 1.14.5=>1.15.2 #17007

Closed
2 of 6 tasks
dannyzcy opened this issue Sep 10, 2021 · 2 comments · Fixed by #17008
Closed
2 of 6 tasks

always running processes from 1.14.5=>1.15.2 #17007

dannyzcy opened this issue Sep 10, 2021 · 2 comments · Fixed by #17008
Milestone

Comments

@dannyzcy
Copy link

  • Gitea version (or commit ref): 1.15.2
  • Git version: 2.33.0.windows.2
  • Operating system:
    windowns
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No

Description

always running processes from 1.14.5=>1.15.0=>1.15.1=>1.15.2

the bug from 1.15.x

not appear in 1.14.5

Screenshots

未命名

@zeripath
Copy link
Contributor

Is there actually a process associated with this on your system?

zeripath added a commit to zeripath/gitea that referenced this issue Sep 10, 2021
When the external context is cancelled it is possible for the
GitLogReader to not itself be Closed.

This PR does three things:

1. Instead of adding a plain defer it wraps the `g.Close` in a func as
`g` may change.
2. It adds the missing explicit g.Close - although the defer fix makes
this unnecessary.
3. It passes down the external context as the base context for the
GitLogReader meaning that the cancellation of the external context will
pass down automatically.

Fix go-gitea#17007

Signed-off-by: Andrew Thornton <[email protected]>
@zeripath zeripath added this to the 1.15.3 milestone Sep 10, 2021
@zeripath
Copy link
Contributor

Apologies there appears to be a missing Close if the external context is cancelled and the defer wasn't firing due to a slight gotcha.

zeripath added a commit to zeripath/gitea that referenced this issue Sep 10, 2021
Backport go-gitea#17008

When the external context is cancelled it is possible for the
GitLogReader to not itself be Closed.

This PR does three things:

1. Instead of adding a plain defer it wraps the `g.Close` in a func as
`g` may change.
2. It adds the missing explicit g.Close - although the defer fix makes
this unnecessary.
3. It passes down the external context as the base context for the
GitLogReader meaning that the cancellation of the external context will
pass down automatically.

Fix go-gitea#17007

Signed-off-by: Andrew Thornton <[email protected]>
lunny pushed a commit that referenced this issue Sep 10, 2021
Backport #17008

When the external context is cancelled it is possible for the
GitLogReader to not itself be Closed.

This PR does three things:

1. Instead of adding a plain defer it wraps the `g.Close` in a func as
`g` may change.
2. It adds the missing explicit g.Close - although the defer fix makes
this unnecessary.
3. It passes down the external context as the base context for the
GitLogReader meaning that the cancellation of the external context will
pass down automatically.

Fix #17007

Signed-off-by: Andrew Thornton <[email protected]>
lunny pushed a commit that referenced this issue Sep 10, 2021
When the external context is cancelled it is possible for the
GitLogReader to not itself be Closed.

This PR does three things:

1. Instead of adding a plain defer it wraps the `g.Close` in a func as
`g` may change.
2. It adds the missing explicit g.Close - although the defer fix makes
this unnecessary.
3. It passes down the external context as the base context for the
GitLogReader meaning that the cancellation of the external context will
pass down automatically.

Fix #17007

Signed-off-by: Andrew Thornton <[email protected]>
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants