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

Avoid setting the CONN_STR in issue indexer queue unless it is meant to be set #13069

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Oct 7, 2020

Part 2 of #13025

Since the move to common leveldb and common redis the disk queue code (#12385)
will check the connection string before defaulting to the DATADIR.

Therefore we should ensure that the connection string is kept empty
unless it is actually set.

Unforunately the issue indexer was missed in #13025 this PR fixes this omission

Fix #13062
Fix #13061

Signed-off-by: Andrew Thornton art27@cantab.net

…to be set

Since the move to common leveldb and common redis the disk queue code (go-gitea#12385)
will check the connection string before defaulting to the DATADIR.

Therefore we should ensure that the connection string is kept empty
unless it is actually set.

Unforunately the issue indexer was missed in go-gitea#13025 this PR fixes this omission

Fix go-gitea#13062

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath added type/bug issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels Oct 7, 2020
@zeripath zeripath added this to the 1.13.0 milestone Oct 7, 2020
@codecov-io
Copy link

Codecov Report

Merging #13069 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13069      +/-   ##
==========================================
- Coverage   42.62%   42.61%   -0.01%     
==========================================
  Files         672      672              
  Lines       73787    73787              
==========================================
- Hits        31450    31446       -4     
- Misses      37245    37248       +3     
- Partials     5092     5093       +1     
Impacted Files Coverage Δ
modules/setting/indexer.go 91.42% <100.00%> (ø)
modules/setting/queue.go 67.61% <0.00%> (-3.81%) ⬇️
modules/log/event.go 58.96% <0.00%> (-0.95%) ⬇️
models/gpg_key.go 53.33% <0.00%> (-0.58%) ⬇️
models/error.go 34.85% <0.00%> (+0.50%) ⬆️
modules/indexer/stats/db.go 60.86% <0.00%> (+8.69%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1bf40ca...fe55dac. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 7, 2020
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Oct 7, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 7, 2020
@zeripath zeripath merged commit 144fa5a into go-gitea:master Oct 7, 2020
@zeripath zeripath deleted the fix-13061-avoid-setting-issue-indexer-conn-str branch October 7, 2020 22:24
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gitea container dies with open /data/gitea/LOG: is a directory error: open /data/gitea/LOG: is a directory
5 participants