Closed peterhhchan closed 8 years ago
> (put! q "example.com" "foo") true > (stats q) {"example.com" {:num-slabs 1, :num-active-slabs 1, :enqueued 1, :retried 0, :completed 0, :in-progress 0}} > (def q (queues "/tmp")) > (stats q) {"com" {:num-slabs 1, :num-active-slabs 0, :enqueued 1, :retried 0, :completed 0, :in-progress 0}}
> (put! q "example.com" "foo")
true
> (stats q)
{"example.com" {:num-slabs 1, :num-active-slabs 1, :enqueued 1, :retried 0, :completed 0, :in-progress 0}}
> (def q (queues "/tmp"))
{"com" {:num-slabs 1, :num-active-slabs 0, :enqueued 1, :retried 0, :completed 0, :in-progress 0}}
From my testing, it appears all the characters before the last '.' in the queue name is lost when reloading the queue.
Digging around, looks like its the regex #"\w+_\d+" that is causing the problem. Feel free to close.
#"\w+_\d+"
> (put! q "example.com" "foo")
true
> (stats q)
{"example.com" {:num-slabs 1, :num-active-slabs 1, :enqueued 1, :retried 0, :completed 0, :in-progress 0}}
> (def q (queues "/tmp"))
> (stats q)
{"com" {:num-slabs 1, :num-active-slabs 0, :enqueued 1, :retried 0, :completed 0, :in-progress 0}}
From my testing, it appears all the characters before the last '.' in the queue name is lost when reloading the queue.