The Wayback Machine - https://web.archive.org/web/20220328122150/https://github.com/go-gitea/gitea/pull/18788
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

In disk_channel queues synchronously push to disk on shutdown (#18415) #18788

Merged
merged 3 commits into from Feb 22, 2022

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Feb 16, 2022

Partial Backport of #18415

Instead of using an asynchronous goroutine to push to disk on shutdown
just close the datachan and immediately push to the disk.

Prevents messages of incompletely flushed queues.

Signed-off-by: Andrew Thornton [email protected]

…ea#18415)

Partial Backport of go-gitea#18415

Instead of using an asynchronous goroutine to push to disk on shutdown
just close the datachan and immediately push to the disk.

Prevents messages of incompletely flushed queues.

Signed-off-by: Andrew Thornton <[email protected]>
@zeripath zeripath added this to the 1.16.2 milestone Feb 16, 2022
lunny
lunny approved these changes Feb 20, 2022
@lunny
Copy link
Member

@lunny lunny commented Feb 22, 2022

make L-G-T-M work

@lunny lunny merged commit 382101e into go-gitea:release/v1.16 Feb 22, 2022
2 checks passed
zjjhot added a commit to zjjhot/gitea that referenced this issue Feb 22, 2022
…se/v1.16

* giteaofficial/release/v1.16:
  In disk_channel queues synchronously push to disk on shutdown (go-gitea#18415) (go-gitea#18788)
  Fix bug for get user by email (go-gitea#18834)
  Update go-org to 1.6.0 (go-gitea#18824) (go-gitea#18839)
  Show fullname on issue edits and gpg/ssh signing info (go-gitea#18828)
  Put buttons back in org dashboard (go-gitea#18817) (go-gitea#18825)
  Immediately Hammer if second kill is sent (go-gitea#18823) (go-gitea#18826)
  Fix panic in EscapeReader (go-gitea#18820) (go-gitea#18821)
  remove redundant call to UpdateRepoStats during migration (go-gitea#18591) (go-gitea#18794)
  Allow mermaid render error to wrap (go-gitea#18791)
  Attempt to fix the webauthn migration again - part 3 (go-gitea#18770) (go-gitea#18771)
  Fix template bug of LFS lock (go-gitea#18784) (go-gitea#18787)
  Various Mermaid improvements (go-gitea#18776) (go-gitea#18780)
  Ensure git tag tests and others create test repos in tmpdir (go-gitea#18447) (go-gitea#18767)
  Increase the size of the webauthn_credential credential_id field (go-gitea#18739) (go-gitea#18756)
  Prevent dangling GetAttribute calls (go-gitea#18754) (go-gitea#18755)
  Send mail to issue/pr assignee/reviewer also when OnMention is set (go-gitea#18707) (go-gitea#18765)
  Fix a broken link in `commits_list_small.tmpl` (go-gitea#18764)
  Fix isempty detection of git repository (go-gitea#18746) (go-gitea#18750)
@zeripath zeripath deleted the backport-18415-v1.16 branch Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants