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

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

                Author: ASF GitHub Bot
            Created on: 22/May/19 06:22
            Start Date: 22/May/19 06:22
    Worklog Time Spent: 10m 
      Work Description: franz1981 commented on pull request #2675: ARTEMIS-2347 
JournalStorageManager::stopReplication can deadlock while stopping
URL: https://github.com/apache/activemq-artemis/pull/2675#discussion_r286328434
 
 

 ##########
 File path: 
artemis-server/src/test/java/org/apache/activemq/artemis/core/persistence/impl/journal/JournalStorageManagerTest.java
 ##########
 @@ -145,4 +166,73 @@ public void testFixJournalFileSize() {
       Assert.assertEquals(4096, manager.fixJournalFileSize(4098, 4096));
       Assert.assertEquals(8192, manager.fixJournalFileSize(8192, 4096));
    }
+
+   @Test(timeout = 20_000)
 
 Review comment:
   :+1: Thanks to have taken a look bud, please check if now is ok (I don't 
have a Mac/Win to test it!)
 
----------------------------------------------------------------
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:
[email protected]


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

    Worklog Id:     (was: 246590)
    Time Spent: 50m  (was: 40m)

> JournalStorageManager::stopReplication can deadlock while stopping
> ------------------------------------------------------------------
>
>                 Key: ARTEMIS-2347
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2347
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.8.1
>            Reporter: Francesco Nigro
>            Priority: Major
>             Fix For: 2.9.0
>
>         Attachments: deadlock_stacktrace.txt
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> JournalStorageManager::stopReplication needs to:
>  # acquires the manager write lock
>  # acquires (if any) large message intrinsic locks during 
> performCachedLargeMessageDeletes
>  # acquires the manager read lock on confirmPendingLargeMessage
> JournalStorageManager::stop needs to:
>  # acquires (if any) large message intrinsic locks during 
> performCachedLargeMessageDeletes
>  # acquires the manager read lock on confirmPendingLargeMessage
> A racing call to JournalStorageManager::stopReplication while stopping could 
> deadlock
>  the broker:
>  # JournalStorageManager::stop acquires a large message intrinsic locks 
> during performCachedLargeMessageDeletes
>  # JournalStorageManager::stopReplication acquires the manager write lock
>  # JournalStorageManager::stop wait is blocked on the manager write lock 
> before releasing the lock on large message
>  # JournalStorageManager::stopReplication is blocked on the large message 
> intrinsic lock before releasing the manager write lock
>  # deadlock occurred: none can proceed



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to