[
https://issues.apache.org/jira/browse/ARTEMIS-2347?focusedWorklogId=246119&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-246119
]
ASF GitHub Bot logged work on ARTEMIS-2347:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 21/May/19 15:23
Start Date: 21/May/19 15:23
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
AbstractJournalStorageManager::performCachedLargeMessageDeletes
must enforce acquisition of manager write lock (as documented)
to avoid unlucky racing calls of stopReplication while stopping
to deadlock.
----------------------------------------------------------------
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: 246119)
Time Spent: 10m
Remaining Estimate: 0h
> 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: 10m
> 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)