Webadmin Delete Mailbox

"Regan, Aaron" <[email protected]>
Newsgroups gmane.comp.jakarta.james.user
Message-ID <[email protected]>
Hi,

I think I may have run into a bug, when deleting a users mailboxes using the Webadmin, James deletes the mailboxes and then continues trying to delete the same mailbox, throwing an error, as it no longer exists. This maxes out after 3 tries. 

I'm running James 3.4.0 Cassandra-Guice using docker. Please find the error log output attached.

Steps to reproduce:
- Create User
- Create a User Mailbox
- Run Webadmin Delete All user mailbox command.
- Inspect Logs

Regards,
Aaron


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
logs.txt (text/plain, 14.8 KB)
mailserver        | 17:51:55.500 [INFO ] o.a.j.w.m.LoggingRequestFilter - WebAdmin request received
mailserver        | 17:51:55.532 [INFO ] o.a.j.m.s.StoreMailboxManager - deleteMailbox #private:[email protected]:INBOX
mailserver        | 17:51:55.569 [INFO ] o.a.j.m.c.GhostMailbox - Mailbox deleted event
mailserver        | 17:51:55.581 [ERROR] o.a.j.m.e.d.InVmEventDelivery - Error while processing listener
mailserver        | org.apache.james.mailbox.exception.MailboxNotFoundException: daeba0d0-0635-11ea-9dbb-03eb6e5bd911 can not be found
mailserver        | 	at org.apache.james.mailbox.cassandra.mail.CassandraMailboxMapper.lambda$findMailboxById$2(CassandraMailboxMapper.java:121)
mailserver        | 	at java.util.Optional.orElseThrow(Optional.java:290)
mailserver        | 	at org.apache.james.mailbox.cassandra.mail.CassandraMailboxMapper.findMailboxById(CassandraMailboxMapper.java:121)
mailserver        | 	at org.apache.james.mailbox.store.search.ListeningMessageSearchIndex.handleMailboxEvent(ListeningMessageSearchIndex.java:77)
mailserver        | 	at org.apache.james.mailbox.store.search.ListeningMessageSearchIndex.event(ListeningMessageSearchIndex.java:71)
mailserver        | 	at org.apache.james.mailbox.events.delivery.InVmEventDelivery.doDeliverToListener(InVmEventDelivery.java:88)
mailserver        | 	... 13 common frames omitted
mailserver        | Wrapped by: java.lang.RuntimeException: org.apache.james.mailbox.exception.MailboxNotFoundException: daeba0d0-0635-11ea-9dbb-03eb6e5bd911 can not be found
mailserver        | 	at org.apache.james.mailbox.events.delivery.InVmEventDelivery.doDeliverToListener(InVmEventDelivery.java:90)
mailserver        | 	at org.apache.james.mailbox.events.delivery.InVmEventDelivery.lambda$deliverByOption$0(InVmEventDelivery.java:71)
mailserver        | 	at reactor.core.publisher.MonoRunnable.subscribe(MonoRunnable.java:49)
mailserver        | 	at reactor.core.publisher.MonoPeek.subscribe(MonoPeek.java:71)
mailserver        | 	at reactor.core.publisher.Mono.subscribe(Mono.java:3852)
mailserver        | 	at reactor.core.publisher.MonoSubscribeOn$SubscribeOnSubscriber.run(MonoSubscribeOn.java:123)
mailserver        | 	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84)
mailserver        | 	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37)
mailserver        | 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
mailserver        | 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
mailserver        | 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
mailserver        | 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
mailserver        | 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
mailserver        | 	at java.lang.Thread.run(Thread.java:748)
mailserver        | 17:51:55.732 [ERROR] o.a.j.m.e.d.InVmEventDelivery - Error while processing listener
mailserver        | org.apache.james.mailbox.exception.MailboxNotFoundException: daeba0d0-0635-11ea-9dbb-03eb6e5bd911 can not be found
mailserver        | 	at org.apache.james.mailbox.cassandra.mail.CassandraMailboxMapper.lambda$findMailboxById$2(CassandraMailboxMapper.java:121)
mailserver        | 	at java.util.Optional.orElseThrow(Optional.java:290)
mailserver        | 	at org.apache.james.mailbox.cassandra.mail.CassandraMailboxMapper.findMailboxById(CassandraMailboxMapper.java:121)
mailserver        | 	at org.apache.james.mailbox.store.search.ListeningMessageSearchIndex.handleMailboxEvent(ListeningMessageSearchIndex.java:77)
mailserver        | 	at org.apache.james.mailbox.store.search.ListeningMessageSearchIndex.event(ListeningMessageSearchIndex.java:71)
mailserver        | 	at org.apache.james.mailbox.events.delivery.InVmEventDelivery.doDeliverToListener(InVmEventDelivery.java:88)
mailserver        | 	... 13 common frames omitted
mailserver        | Wrapped by: java.lang.RuntimeException: org.apache.james.mailbox.exception.MailboxNotFoundException: daeba0d0-0635-11ea-9dbb-03eb6e5bd911 can not be found
mailserver        | 	at org.apache.james.mailbox.events.delivery.InVmEventDelivery.doDeliverToListener(InVmEventDelivery.java:90)
mailserver        | 	at org.apache.james.mailbox.events.delivery.InVmEventDelivery.lambda$deliverByOption$0(InVmEventDelivery.java:71)
mailserver        | 	at reactor.core.publisher.MonoRunnable.subscribe(MonoRunnable.java:49)
mailserver        | 	at reactor.core.publisher.MonoPeek.subscribe(MonoPeek.java:71)
mailserver        | 	at reactor.core.publisher.Mono.subscribe(Mono.java:3852)
mailserver        | 	at reactor.core.publisher.MonoSubscribeOn$SubscribeOnSubscriber.run(MonoSubscribeOn.java:123)
mailserver        | 	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84)
mailserver        | 	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37)
mailserver        | 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
mailserver        | 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
mailserver        | 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
mailserver        | 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
mailserver        | 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
mailserver        | 	at java.lang.Thread.run(Thread.java:748)
mailserver        | 17:51:56.031 [ERROR] o.a.j.m.e.d.InVmEventDelivery - Error while processing listener
mailserver        | org.apache.james.mailbox.exception.MailboxNotFoundException: daeba0d0-0635-11ea-9dbb-03eb6e5bd911 can not be found
mailserver        | 	at org.apache.james.mailbox.cassandra.mail.CassandraMailboxMapper.lambda$findMailboxById$2(CassandraMailboxMapper.java:121)
mailserver        | 	at java.util.Optional.orElseThrow(Optional.java:290)
mailserver        | 	at org.apache.james.mailbox.cassandra.mail.CassandraMailboxMapper.findMailboxById(CassandraMailboxMapper.java:121)
mailserver        | 	at org.apache.james.mailbox.store.search.ListeningMessageSearchIndex.handleMailboxEvent(ListeningMessageSearchIndex.java:77)
mailserver        | 	at org.apache.james.mailbox.store.search.ListeningMessageSearchIndex.event(ListeningMessageSearchIndex.java:71)
mailserver        | 	at org.apache.james.mailbox.events.delivery.InVmEventDelivery.doDeliverToListener(InVmEventDelivery.java:88)
mailserver        | 	... 13 common frames omitted
mailserver        | Wrapped by: java.lang.RuntimeException: org.apache.james.mailbox.exception.MailboxNotFoundException: daeba0d0-0635-11ea-9dbb-03eb6e5bd911 can not be found
mailserver        | 	at org.apache.james.mailbox.events.delivery.InVmEventDelivery.doDeliverToListener(InVmEventDelivery.java:90)
mailserver        | 	at org.apache.james.mailbox.events.delivery.InVmEventDelivery.lambda$deliverByOption$0(InVmEventDelivery.java:71)
mailserver        | 	at reactor.core.publisher.MonoRunnable.subscribe(MonoRunnable.java:49)
mailserver        | 	at reactor.core.publisher.MonoPeek.subscribe(MonoPeek.java:71)
mailserver        | 	at reactor.core.publisher.Mono.subscribe(Mono.java:3852)
mailserver        | 	at reactor.core.publisher.MonoSubscribeOn$SubscribeOnSubscriber.run(MonoSubscribeOn.java:123)
mailserver        | 	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84)
mailserver        | 	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37)
mailserver        | 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
mailserver        | 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
mailserver        | 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
mailserver        | 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
mailserver        | 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
mailserver        | 	at java.lang.Thread.run(Thread.java:748)
mailserver        | 17:51:56.499 [ERROR] o.a.j.m.e.d.InVmEventDelivery - Error while processing listener
mailserver        | org.apache.james.mailbox.exception.MailboxNotFoundException: daeba0d0-0635-11ea-9dbb-03eb6e5bd911 can not be found
mailserver        | 	at org.apache.james.mailbox.cassandra.mail.CassandraMailboxMapper.lambda$findMailboxById$2(CassandraMailboxMapper.java:121)
mailserver        | 	at java.util.Optional.orElseThrow(Optional.java:290)
mailserver        | 	at org.apache.james.mailbox.cassandra.mail.CassandraMailboxMapper.findMailboxById(CassandraMailboxMapper.java:121)
mailserver        | 	at org.apache.james.mailbox.store.search.ListeningMessageSearchIndex.handleMailboxEvent(ListeningMessageSearchIndex.java:77)
mailserver        | 	at org.apache.james.mailbox.store.search.ListeningMessageSearchIndex.event(ListeningMessageSearchIndex.java:71)
mailserver        | 	at org.apache.james.mailbox.events.delivery.InVmEventDelivery.doDeliverToListener(InVmEventDelivery.java:88)
mailserver        | 	... 13 common frames omitted
mailserver        | Wrapped by: java.lang.RuntimeException: org.apache.james.mailbox.exception.MailboxNotFoundException: daeba0d0-0635-11ea-9dbb-03eb6e5bd911 can not be found
mailserver        | 	at org.apache.james.mailbox.events.delivery.InVmEventDelivery.doDeliverToListener(InVmEventDelivery.java:90)
mailserver        | 	at org.apache.james.mailbox.events.delivery.InVmEventDelivery.lambda$deliverByOption$0(InVmEventDelivery.java:71)
mailserver        | 	at reactor.core.publisher.MonoRunnable.subscribe(MonoRunnable.java:49)
mailserver        | 	at reactor.core.publisher.MonoPeek.subscribe(MonoPeek.java:71)
mailserver        | 	at reactor.core.publisher.Mono.subscribe(Mono.java:3852)
mailserver        | 	at reactor.core.publisher.MonoSubscribeOn$SubscribeOnSubscriber.run(MonoSubscribeOn.java:123)
mailserver        | 	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84)
mailserver        | 	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37)
mailserver        | 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
mailserver        | 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
mailserver        | 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
mailserver        | 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
mailserver        | 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
mailserver        | 	at java.lang.Thread.run(Thread.java:748)
mailserver        | 17:51:56.502 [ERROR] o.a.j.m.e.d.EventDelivery$Retryer$BackoffRetryer - listener org.apache.james.mailbox.elasticsearch.events.ElasticSearchListeningMessageSearchIndex exceeded maximum retry(3) to handle event org.apache.james.mailbox.events.MailboxListener.MailboxDeletion
mailserver        | org.apache.james.mailbox.exception.MailboxNotFoundException: daeba0d0-0635-11ea-9dbb-03eb6e5bd911 can not be found
mailserver        | 	at org.apache.james.mailbox.cassandra.mail.CassandraMailboxMapper.lambda$findMailboxById$2(CassandraMailboxMapper.java:121)
mailserver        | 	at java.util.Optional.orElseThrow(Optional.java:290)
mailserver        | 	at org.apache.james.mailbox.cassandra.mail.CassandraMailboxMapper.findMailboxById(CassandraMailboxMapper.java:121)
mailserver        | 	at org.apache.james.mailbox.store.search.ListeningMessageSearchIndex.handleMailboxEvent(ListeningMessageSearchIndex.java:77)
mailserver        | 	at org.apache.james.mailbox.store.search.ListeningMessageSearchIndex.event(ListeningMessageSearchIndex.java:71)
mailserver        | 	at org.apache.james.mailbox.events.delivery.InVmEventDelivery.doDeliverToListener(InVmEventDelivery.java:88)
mailserver        | 	... 13 common frames omitted
mailserver        | Wrapped by: java.lang.RuntimeException: org.apache.james.mailbox.exception.MailboxNotFoundException: daeba0d0-0635-11ea-9dbb-03eb6e5bd911 can not be found
mailserver        | 	at org.apache.james.mailbox.events.delivery.InVmEventDelivery.doDeliverToListener(InVmEventDelivery.java:90)
mailserver        | 	at org.apache.james.mailbox.events.delivery.InVmEventDelivery.lambda$deliverByOption$0(InVmEventDelivery.java:71)
mailserver        | 	at reactor.core.publisher.MonoRunnable.subscribe(MonoRunnable.java:49)
mailserver        | 	... 11 common frames omitted
mailserver        | Wrapped by: java.lang.IllegalStateException: Retries exhausted: 3/3
mailserver        | 	at reactor.core.publisher.FluxRetryWhen.lambda$null$0(FluxRetryWhen.java:262)
mailserver        | 	at reactor.core.publisher.FluxFlatMap$FlatMapMain.onNext(FluxFlatMap.java:350)
mailserver        | 	at reactor.core.publisher.FluxIndex$IndexSubscriber.onNext(FluxIndex.java:95)
mailserver        | 	at reactor.core.publisher.DirectProcessor$DirectInner.onNext(DirectProcessor.java:333)
mailserver        | 	at reactor.core.publisher.DirectProcessor.onNext(DirectProcessor.java:142)
mailserver        | 	at reactor.core.publisher.SerializedSubscriber.onNext(SerializedSubscriber.java:89)
mailserver        | 	at reactor.core.publisher.FluxRetryWhen$RetryWhenMainSubscriber.onError(FluxRetryWhen.java:161)
mailserver        | 	at reactor.core.publisher.MonoIgnoreElements$IgnoreElementsSubscriber.onError(MonoIgnoreElements.java:76)
mailserver        | 	at reactor.core.publisher.MonoSubscribeOn$SubscribeOnSubscriber.onError(MonoSubscribeOn.java:149)
mailserver        | 	at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:214)
mailserver        | 	at reactor.core.publisher.MonoRunnable.subscribe(MonoRunnable.java:52)
mailserver        | 	at reactor.core.publisher.MonoPeek.subscribe(MonoPeek.java:71)
mailserver        | 	at reactor.core.publisher.Mono.subscribe(Mono.java:3852)
mailserver        | 	at reactor.core.publisher.MonoSubscribeOn$SubscribeOnSubscriber.run(MonoSubscribeOn.java:123)
mailserver        | 	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84)
mailserver        | 	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37)
mailserver        | 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
mailserver        | 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
mailserver        | 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
mailserver        | 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
mailserver        | 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
mailserver        | 	at java.lang.Thread.run(Thread.java:748)
mailserver        | 17:51:56.506 [INFO ] o.a.j.w.m.LoggingResponseFilter - WebAdmin response received
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.