dque
dque copied to clipboard
Occasional: Queue is in an inconsistent state
I've been trying to figure this out for a while but it's super hard to reproduce. Occasionally, I get the following error:
Caused by: error deleting queue segment /tmp/ripple/600f5b80f62ab2ff24e82005/hb-queue/0000000000001.dque. Queue
is in an inconsistent state: error deleting file: /tmp/ripple/600f5b80f62ab2ff24e82005/hb-queue/0000000000001.dque:
remove /tmp/ripple/600f5b80f62ab2ff24e82005/hb-queue/0000000000001.dque: no such file or directory
Are there any known causes for these inconsistencies that I might have missed? I'm not doing anything special except I am using the same instance of the queue in different goroutines. One does all the writing while the other one dequeues.
Sometimes I go weeks without seeing this and then it just pops up.