- Sep 07, 2020
-
-
This is important for GC - otherwise the usage computation would be wrong after another process changed size (without replacing the file).
-
As the code has been so far, there's no usable cache in that case and some code just can't handle that. Up to now we were getting SIGSEGV from inside LMDB on the next attempted operation. We might consider loosening preallocation in that case or even retrying after a short sleep. Systemd's restart after hold-off timeout has an effect similar to the short sleep.
-
In the unlikely case that GC happens "too late", it could fail when deleting, in which case it seems best to reopen the cache and try again, as it will probably be deleted by a kresd instance by the next interval.
-
Until now the analyzing pass over full DB was taking place in a single RO transaction. For an unknown reason this caused kresd processes to get MDB_MAP_FULL from mdb_put(), even though clearly there were plenty free pages at that point. Basic experiments show that 1k steps are OK and 10k steps are not.
-
though I've never seen it happening.
-
This apparently gets rid of MDB_BAD_TXN failures that we were getting when cache overflows. Unfortunately LMDB docs don't mention that after operation failures one should abort the corresponding transaction.
-
Now it should keep working if the file has been replaced.
-
FIXME: review, testing, etc. A couple functions got folded into cdb_open_env(), as the split was complicating situation (mainly around error handling).
-
Petr Špaček authored
doc: upcoming changes See merge request !1057
-
Petr Špaček authored
-
Petr Špaček authored
-
Petr Špaček authored
-
Petr Špaček authored
scripts, docs: specify lua version in `luarocks install` Closes #601 See merge request !1052
-
On some systems luarocks defaults to other lua version (e.g. Fedora), so the result would not be usable from kresd. I didn't touch scripts for older distro versions (Debian < 10, Ubuntu < 20.04, CentOS 7).
-
- Sep 01, 2020
-
-
Tomas Krizek authored
lib/dnssec: fix build against libdnssec 3.0 See merge request !1053
-
Vladimír Čunát authored
It hasn't been released yet, but this patch fixes build against current Knot master already.
-
- Aug 27, 2020
-
-
Tomas Krizek authored
lib/generic/queue: fix a bug + minor changes See merge request knot/knot-resolver!1050
-
Vladimír Čunát authored
... and most importantly, review all the code. Detail: queue_{head,tail}_impl() no longer "safely return" NULL on an empty queue, as the API always dereferences the returned pointer anyway.
-
Vladimír Čunát authored
It... feels better that way.
-
Vladimír Čunát authored
Emptying the queue and using it again... didn't work :-( Fortunately, no use case in kresd so far could trigger this, I believe: - struct session::waiting is a list of tasks waiting while connection is being established - the temporary queue in session_tasklist_finalize_expired() is also only once filled and emptied
-
- Aug 25, 2020
-
-
Vladimír Čunát authored
-
Tomas Krizek authored
The trailing _t implies the type is a typedef like: typedef struct tls_ctx { ... } tls_ctx_t; But it is a plain struct - so remove it to avoid confusion.
-
Vladimír Čunát authored
-
It was rather confusing: - event.after(0, ...) executed function immediatelly - event.recurrent(0, ...) executed function immediatelly (seemingly worked) but stoped after the first execution, i.e. no recurrence took place.
-
- Aug 24, 2020
-
-
Tomas Krizek authored
config test improvements See merge request knot/knot-resolver!1045
-
In theory there should be no background task but we need cleanup in case kresd gets into infinite loop or something like that.
-
- Aug 21, 2020
-
-
Vladimír Čunát authored
Fixes #596.
-
- Aug 18, 2020
-
-
Tomas Krizek authored
distro/tests: fix file permissions set by ansible See merge request !1044
-
- Aug 17, 2020
-
-
Tomas Krizek authored
Ansible switched default file perm to 600 from more permissive 666. Add file mode explicitly to avoid issues.
-
Petr Špaček authored
docs: clarify policy.ANSWER See merge request !1037
-
Petr Špaček authored
-
Petr Špaček authored
script to gather data from systemd journal See merge request !1040
-
- Aug 14, 2020
-
-
Tomas Krizek authored
-
- Aug 13, 2020
-
-
Štěpán Balážik authored
ci: check whether Deckard submodule commit is present on master See merge request !1038
-
Štěpán Balážik authored
This is to prevent issues like !1036
-