clj-commons / durable-queue

a disk-backed queue for clojure
Eclipse Public License 1.0
384 stars 31 forks source link

names with . characters do not save properly. #9

Closed peterhhchan closed 8 years ago

peterhhchan commented 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}}

From my testing, it appears all the characters before the last '.' in the queue name is lost when reloading the queue.

peterhhchan commented 8 years ago

Digging around, looks like its the regex #"\w+_\d+" that is causing the problem. Feel free to close.