Tasks ttl and ttr wrong behavior
まだ誰も着手していません。
評価
調査の方向性
queue.create_tube、tube:put、tube:take、tube:ackをttl=5およびttr=100で使用して動作を再現し、その後、タスクのライフサイクルがtake後の期限切れをどのように処理するかを調査します。完了の条件は、取得されたタスクが残りのttlに加えてttrの期間も確認可能なままであり、「Task was not taken in the session.」を返さないことです。
索引モデルが issue の本文から書いたものです。
説明
When we put a task with ttl and ttr set, it behaves incorrectly.
Example:
queue = require 'queue'
queue.create_tube('test_ttr', 'fifottl')
queue.tube.test_ttr:put('foobar', {ttr=100, ttl=5})
queue.tube.test_ttr:take(0)
----- Wait six seconds
queue.tube.test_ttr:ack(0)
- error: Task was not taken in the session
I think this behavior is due to the fact that the task was removed from the queue after ttl = 5 seconds.
But in my opinion, when the task was taken, it should has a new ttl in the queue = remaining time + ttr
Something like that 3+100 and it should ack() correctly without error within 103 seconds
- 主要言語
- Lua
- スター
- 244
- フォーク
- 56
- 平均マージ
- 6日 8時間
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tarantool/queue のほかの issue
-
documentation good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
-
1sp bug teamE
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
tarantool/queue の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
LandSandBoat/server#11579 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ArchiveTeam/sinavideo-grab#7 · リアクション 3 件 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
mailcow/mailcow-dockerized#7480 ·
-
mapper bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
documentation feature-request mini.completion
難易度 1/5 1時間未満 初心者へのやさしさ 88/100