[
https://issues.apache.org/jira/browse/JAMES-4007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17819247#comment-17819247
]
Benoit Tellier commented on JAMES-4007:
---------------------------------------
This could apparently also happen if the APPEND is throttled thus not executed.
Another related issue:
{code:java}
reactor.core.Exceptions$ErrorCallbackNotImplemented:
com.github.fge.lambdas.ThrownByLambdaException:
java.nio.file.NoSuchFileException: /tmp/imap-literal2808491105678124450.tmp
Caused by: com.github.fge.lambdas.ThrownByLambdaException:
java.nio.file.NoSuchFileException: /tmp/imap-literal2808491105678124450.tmp
at
com.github.fge.lambdas.runnable.ThrowingRunnable.run(ThrowingRunnable.java:20)
at reactor.core.publisher.MonoRunnable.call(MonoRunnable.java:73)
at reactor.core.publisher.MonoRunnable.call(MonoRunnable.java:32)
at
reactor.core.publisher.FluxSubscribeOnCallable$CallableSubscribeOnSubscription.run(FluxSubscribeOnCallable.java:228)
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68)
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at
java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.nio.file.NoSuchFileException:
/tmp/imap-literal2808491105678124450.tmp
at java.base/sun.nio.fs.UnixException.translateToIOException(Unknown
Source)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown
Source)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown
Source)
at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(Unknown
Source)
at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(Unknown
Source)
at java.base/java.nio.file.Files.delete(Unknown Source)
at
org.apache.james.imapserver.netty.NettyStreamImapRequestLineReader$FileLiteral.lambda$close$0(NettyStreamImapRequestLineReader.java:60)
at
com.github.fge.lambdas.runnable.RunnableChainer.doRun(RunnableChainer.java:18)
at
com.github.fge.lambdas.runnable.ThrowingRunnable.run(ThrowingRunnable.java:16)
... 10 common frames omitted
{code}
If the connection is closed ImapRequestFrameDecoder might delete the IMAP
litteral while APPEND is still in progress.
> Some IMAP litterals were not cleaned up
> ---------------------------------------
>
> Key: JAMES-4007
> URL: https://issues.apache.org/jira/browse/JAMES-4007
> Project: James Server
> Issue Type: Bug
> Components: IMAPServer
> Reporter: Benoit Tellier
> Priority: Major
>
> h3. What I noticed
> {code:java}
> root@tmail-imap-smtp-9dc75475f-4dfc7:/# ls -lah /tmp
> total 17M
> drwxrwxrwt 3 root root 220 Feb 21 11:47 .
> drwxr-xr-x 1 root root 29 Feb 21 09:49 ..
> -rw------- 1 root root 252K Feb 21 11:47
> FileBackedOutputStream4796294521529525936.tmp
> -rw------- 1 root root 6.3M Feb 21 11:47
> FileBackedOutputStream5042970611980201980.tmp
> -rw------- 1 root root 111K Feb 21 11:47
> FileBackedOutputStream9469184234067839554.tmp
> drwxr-xr-x 2 root root 60 Feb 21 09:49 hsperfdata_root
> -rw------- 1 root root 8.0M Feb 21 11:47 imap-literal14135829094410407687.tmp
> -rw------- 1 root root 253K Feb 21 11:47 imap-literal14825699277716575828.tmp
> -rw------- 1 root root 113K Feb 21 11:47 imap-literal17479090714550035642.tmp
> -rw------- 1 root root 200K Feb 21 11:47 imap-literal3284956234462346798.tmp
> -rw------- 1 root root 1.8M Feb 21 11:17 imap-literal7906819567048433417.tmp
> {code}
> There a 30 min+ file that was not cleaned up.
> This is a very rare occurence.
> Looking at the code this could happend if the subscription is canceled while
> processing the APPEND command...
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]