-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
ISSUE_INDEXER_QUEUE_CONN_STR used as ISSUE_INDEXER_QUEUE_DIR #14272
Comments
this is intentional. |
What's the reasoning behind this being intentional? Shouldn't |
...and if I comment out
Note that it's not hard to end up with gitea/custom/conf/app.example.ini Lines 484 to 497 in 3c96a37
So, if this is intentional, it should at least be documented :/ |
because it can be used to provide a lot more options to the leveldb queue. The app.example.ini is NOT supposed to be copied. If you don't know what a setting is you should not set it. |
sorry to insist, but...
Fair enough. I can simply not define
sure, but why should it override the directory when leveldb is not used? |
They are not unrelated settings at all. Just because you don't know how they relate does not mean that they aren't and aren't that way for a good reason.
How do you think the persistable-channel is persisted? We use a leveldb internally - I'm fairly certain that the docs state that. Anyway let's stop being so aggressive. The CONN_STR for an underlying level db is a directory or, something of the form:
with options as per: gitea/modules/nosql/manager_leveldb.go Lines 59 to 132 in d989247
I'm sorry it's incompletely documented but it's the only way to allow any of these options to be set.
I don't completely understand how can we be expected that you would have incorrect values in your app.ini. However, feel free to provide a PR improving the documentation. If you don't understand what is in your app.ini please don't set it. Please go through the rest of your app.ini - I suspect you have a section |
Thanks for clearing that up. It makes a bit more sense now that you explained it.
Sorry, I can't find it anywhere :/ Anyway, I think it's clear now that this is a documentation issue.
yep, you're right :/ I'll review my config. Thank you. |
- example config is not supposed to be copied - 'persistable-channel' uses a leveldb internally - '*CONN_STR' overrides queue DIR
* master: (252 commits) Issues overview should not show issues from archived repos (go-gitea#13220) Display SVG files as images instead of text (go-gitea#14101) [skip ci] Updated translations via Crowdin Update docs to clarify issues raised in go-gitea#14272 (go-gitea#14318) [skip ci] Updated translations via Crowdin [Refactor] Passwort Hash/Set (go-gitea#14282) Add option to change username to the admin panel (go-gitea#14229) fix mailIssueCommentBatch for pull request (go-gitea#14252) Remove self from MAINTAINERS (go-gitea#14286) Do not reload page after adding comments in Pull Request reviews (go-gitea#13877) Fix session bug when introduce chi (go-gitea#14287) [skip ci] Updated translations via Crowdin Add secure/httpOnly attributes to the lang cookie (go-gitea#9690) (go-gitea#14279) Some code improvements (go-gitea#14266) [skip ci] Updated translations via Crowdin Fix wrong type on hooktask to convert typ from char(16) to varchar(16) (go-gitea#14148) Upgrade XORM links in documentation. (go-gitea#14265) Check permission for the appropriate unit type (go-gitea#14261) Add compliance check for windows to ensure cross platform build (go-gitea#14260) [skip ci] Updated translations via Crowdin ...
[x]
): NADescription
It seems
ISSUE_INDEXER_QUEUE_CONN_STR
is being used asISSUE_INDEXER_QUEUE_DIR
.Steps to reproduce (from source):
issues.queue
is created, as per the defaults:rm -r /data/gitea/indexers/
start gitea web again
notice that
issues.queue
does not exist, but a 'addrs=127.0.0.1:6379 db=0' dir was created:Notice I did not set
ISSUE_INDEXER_QUEUE_TYPE
norISSUE_INDEXER_QUEUE_DIR
anywhere.The config-cheat-sheet does mention that
ISSUE_INDEXER_QUEUE_TYPE
andISSUE_INDEXER_QUEUE_DIR
are deprecated, but they are present in the example config file:gitea/custom/conf/app.example.ini
Lines 453 to 460 in 3c96a37
I was able to reproduce this using:
Screenshots
NA
The text was updated successfully, but these errors were encountered: