[ 
https://issues.apache.org/jira/browse/ARTEMIS-5890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18056463#comment-18056463
 ] 

Clebert Suconic edited comment on ARTEMIS-5890 at 2/4/26 3:16 PM:
------------------------------------------------------------------

there's a test I added on this PR:

https://github.com/apache/artemis/pull/6218

if you run AmqpLargeMessageTest::testInterruptStreaming without any fixes you 
will see this exception:



{code:java}
java.lang.IllegalArgumentException
        at 
org.apache.qpid.proton.engine.impl.SenderImpl.send(SenderImpl.java:72)
        at 
org.apache.activemq.artemis.protocol.amqp.proton.AMQPLargeMessageWriter.tryDelivering(AMQPLargeMessageWriter.java:208)
        at 
io.netty.util.concurrent.AbstractEventExecutor.runTask$$$capture(AbstractEventExecutor.java:173)
        at 
io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java)
        at 
io.netty.util.concurrent.AbstractEventExecutor.safeExecute$$$capture(AbstractEventExecutor.java:166)
        at 
io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java)
        at 
io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
        at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:405)
        at 
io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:998)
        at 
io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)

{code}



was (Author: clebertsuconic):
there's a test I added on this PR:

https://github.com/apache/artemis/pull/6218

if you run AmqpLargeMessageTest::testInterruptStreaming you will see this 
exception:



{code:java}
java.lang.IllegalArgumentException
        at 
org.apache.qpid.proton.engine.impl.SenderImpl.send(SenderImpl.java:72)
        at 
org.apache.activemq.artemis.protocol.amqp.proton.AMQPLargeMessageWriter.tryDelivering(AMQPLargeMessageWriter.java:208)
        at 
io.netty.util.concurrent.AbstractEventExecutor.runTask$$$capture(AbstractEventExecutor.java:173)
        at 
io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java)
        at 
io.netty.util.concurrent.AbstractEventExecutor.safeExecute$$$capture(AbstractEventExecutor.java:166)
        at 
io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java)
        at 
io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
        at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:405)
        at 
io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:998)
        at 
io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)

{code}


> Closing a connection while large message is being delivered could show 
> exceptions in the log
> --------------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-5890
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5890
>             Project: Artemis
>          Issue Type: Bug
>            Reporter: Clebert Suconic
>            Assignee: Clebert Suconic
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.52.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> If you close a connection while the server still delivering large messages, 
> you could see exceptions in the logs (IllegalArgumentException).
> The delivery thread should check the state of the connection before issuing 
> more deliveries.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to