fifottl queue entries with an explicit ttl get stuck in an odd state
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
Piste de recherche
Commencez par le projet de reproduction lié et son docker/Dockerfile, puis exécutez npm i, build.sh dans Docker et npm run test. Examinez les appels concurrents à queue.tube.test_buffer:take, put et ack, en particulier le cas de ttl explicite. Le travail est terminé lorsque les entrées ne restent pas avec ttl 0 et un next_event élevé, et que la reproduction ne laisse plus de tâches incorrectement expirées indisponibles via take.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
when this syntax is used to put data in the buffer
queue.tube.test_buffer:put(data, {ttr=60, ttl=15768000000000000})
You end up with entries that have a ttl of 0 and a large next_event time
issue after the test fails the buffer has entries in a state where the ttl is 0, but next event is large [[select "task_id" from "test_buffer" where "ttl" = 0;]] the entries are not returned from take as they are expired, but they should not have expired
using docker image tarantool/tarantool:2.8.4
and a nodejs client
Place tarantool --version output here.
Tarantool 2.8.4-0-g47e6bd362
Target: Linux-x86_64-RelWithDebInfo
Build options: cmake . -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_BACKTRACE=ON
Compiler: /usr/bin/cc /usr/bin/c++
C_FLAGS: -fexceptions -funwind-tables -fno-omit-frame-pointer -fno-stack-protector -fno-common -fopenmp -msse2 -std=c11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-format-truncation -Wno-gnu-alignof-expression -fno-gnu89-inline -Wno-cast-function-type
CXX_FLAGS: -fexceptions -funwind-tables -fno-omit-frame-pointer -fno-stack-protector -fno-common -fopenmp -msse2 -std=c++11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-format-truncation -Wno-invalid-offsetof -Wno-gnu-alignof-expression -Wno-cast-function-type
Steps to reproduce
see the project at
https://github.com/mannnick24/tarantool-fifottl-explicit-ttl/blob/main/docker/Dockerfile
this code uses node tarantool connection to concurrently call queue.tube.test_buffer:take, queue.tube.test_buffer:put and queue.tube.test_buffer:ack
How to run:
npm i
build.sh (in docker)
npm run test
Actual behavior
after the test fails the buffer has entries in a state where the ttl is 0, but next event is large [[select "task_id" from "test_buffer" where "ttl" = 0;]] the entries are not returned from take as they are expired, but they should not have expired
e.g. box.execute([[select "task_id", "status", "created", "ttr", "ttl", "next_event" from "el_buffer" where "ttl" = 0 limit 20;]])
metadata:
name: task_id type: unsigned
name: status type: string
name: created type: unsigned
name: ttr type: unsigned
name: ttl type: unsigned
name: next_event type: unsigned rows:
[4, 'r', 1662662470225835, 60000000, 0, 18446744073709551615]
Expected behavior
the buffer would be empty
- Langage dominant
- Lua
- Étoiles
- 243
- Forks
- 56
- Merge moyen
- 6 j 8 h
- PR mergées (30 j)
- 1
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de tarantool/queue
-
tube:grant() is not documentedOuvertedocumentation good first issue
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
-
*ttl drivers: TTL branch dereferences delete() result without a nil check, killing the fiberPeut-être pris @maksimuimin l’a pris il y a 19 jours. Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 76/100
-
*ttl drivers: a dead TTL fiber cannot be restarted and wedges the queue in ENDING on the next RO switchPeut-être pris @maksimuimin l’a pris il y a 19 jours. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
-
fifottl/limfifottl: stop() blocks forever while RW, drop() leaks the TTL fiberPeut-être pris @maksimuimin l’a pris il y a 19 jours. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
-
1sp bug teamE
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
Toutes les issues de tarantool/queue
Issues similaires
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 91/100
-
bug ready ticket
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Domktorymysli/vclu#5 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
portlandtn/VimConfigs#2 ·