You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (JIRA)" <ji...@apache.org> on 2019/05/29 19:18:00 UTC

[jira] [Resolved] (ARTEMIS-2347) JournalStorageManager::stopReplication can deadlock while stopping

     [ https://issues.apache.org/jira/browse/ARTEMIS-2347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Bertram resolved ARTEMIS-2347.
-------------------------------------
    Resolution: Fixed

> 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: 1h 20m
>  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)