[
https://issues.apache.org/jira/browse/ARTEMIS-1499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16237674#comment-16237674
]
ASF GitHub Bot commented on ARTEMIS-1499:
-----------------------------------------
Github user franz1981 commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/1638#discussion_r148800347
--- Diff:
artemis-commons/src/main/java/org/apache/activemq/artemis/utils/actors/ProcessorBase.java
---
@@ -109,12 +125,49 @@ public final boolean isFlushed() {
return stateUpdater.get(this) == STATE_NOT_RUNNING;
}
- protected void task(T command) {
- tasks.add(command);
--- End diff --
It is not only the flush that has issues but the execute too: take a look
at the tests I've added :)
> ArtemisExecutor and ProcessorBase needs support of recursive blocking
> executions
> --------------------------------------------------------------------------------
>
> Key: ARTEMIS-1499
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1499
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Reporter: Francesco Nigro
> Assignee: Francesco Nigro
> Priority: Major
>
> The (ProcessorBase and) ArtemisExecutor allows recursive executions of
> blocking tasks (FutureLatch) that block the background event loop: it would
> be optimal to support recursive executions to handle them.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)