You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the thread to consume the messages is started first and then we push the messages queue, the push works fine but , pop doesn't happen at all. The timeout in pop is set 1 day.
here is the sample code we are using:
Thread 1 - pop
ExecutorService executorService = Executors.newSingleThreadExecutor();
Runnable runnable = ()->{
while(true) {
V1Queue.pop(1,1,TimeUnit.DAYS).forEach(DynoQueueMain::processMessage);
}
};
Runnable runnable1 =()->{
for(int i=0;i<5;i++) {
Message m = new Message("id-"+i, "payload-extra-"+i);
messages.add(m);
V1Queue.push(messages);
}
};
executorService1.submit(runnable1);
version of dynomite 0.5.7
After the restarting the application , the pop is done.
The code gets stuck in
while(this.prefetchedIds.size() < messageCount && this.clock.millis() - start < waitFor) {
Uninterruptibles.sleepUninterruptibly(200L, TimeUnit.MILLISECONDS);
this.prefetchIds();
}
though the messages are pushed after the thread is started.
Steps:
start the consumer thread
set the timeout 1 day
later start pushing the messages
the message gets pushed.
pop doesnt happen
The text was updated successfully, but these errors were encountered:
If the thread to consume the messages is started first and then we push the messages queue, the push works fine but , pop doesn't happen at all. The timeout in pop is set 1 day.
here is the sample code we are using:
Thread 1 - pop
ExecutorService executorService = Executors.newSingleThreadExecutor();
Runnable runnable = ()->{
while(true) {
V1Queue.pop(1,1,TimeUnit.DAYS).forEach(DynoQueueMain::processMessage);
}
};
Runnable runnable1 =()->{
for(int i=0;i<5;i++) {
Message m = new Message("id-"+i, "payload-extra-"+i);
messages.add(m);
V1Queue.push(messages);
version of dynomite 0.5.7
After the restarting the application , the pop is done.
The code gets stuck in
while(this.prefetchedIds.size() < messageCount && this.clock.millis() - start < waitFor) {
Uninterruptibles.sleepUninterruptibly(200L, TimeUnit.MILLISECONDS);
this.prefetchIds();
}
though the messages are pushed after the thread is started.
Steps:
start the consumer thread
set the timeout 1 day
later start pushing the messages
the message gets pushed.
pop doesnt happen
The text was updated successfully, but these errors were encountered: