You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/10/09 02:25:00 UTC

[jira] [Work logged] (ARTEMIS-2513) Large message's copy may be interfered by other threads

     [ https://issues.apache.org/jira/browse/ARTEMIS-2513?focusedWorklogId=325444&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-325444 ]

ASF GitHub Bot logged work on ARTEMIS-2513:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Oct/19 02:24
            Start Date: 09/Oct/19 02:24
    Worklog Time Spent: 10m 
      Work Description: gaohoward commented on pull request #2859: ARTEMIS-2513 Large message's copy may be interfered by other threads
URL: https://github.com/apache/activemq-artemis/pull/2859
 
 
   In LargeMessageImpl.copy(long) it need to open the underlying
   file in order to read and copy bytes into the new copied message.
   However there is a chance that another thread can come in and close
   the file in the middle, making the copy failed
   with "channel is null" error.
   
   This is happening in cases where a large message is sent to a jms
   topic (multicast address). During delivery it to multiple
   subscribers, some consumer is doing delivery and closed the
   underlying file after. Some other consumer is rolling back
   the messages and eventually move it to DLQ (which will call
   the above copy method). So there is a chance this bug being hit on.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 325444)
    Remaining Estimate: 0h
            Time Spent: 10m

> Large message's copy may be interfered by other threads
> -------------------------------------------------------
>
>                 Key: ARTEMIS-2513
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2513
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.10.1
>            Reporter: Howard Gao
>            Assignee: Howard Gao
>            Priority: Major
>             Fix For: 2.11.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In LargeMessageImpl.copy(long) it need to open the underlying file in order to read and copy bytes into the new copied message. However there is a chance that another thread can come in and close the file in the middle, making the copy failed with "channel is null" error.
> This is happening in cases where a large message is sent to a jms topic (multicast address). During delivery it to multiple subscribers, some consumer is doing delivery and closed the underlying file after. Some other consumer is rolling back the messages and eventually move it to DLQ (which will call the above copy method). So there is a chance this bug being hit on.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)