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

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

                Author: ASF GitHub Bot
            Created on: 23/Apr/25 02:30
            Start Date: 23/Apr/25 02:30
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on code in PR #5646:
URL: https://github.com/apache/activemq-artemis/pull/5646#discussion_r2055153468


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PageTimedWriter.java:
##########
@@ -118,15 +120,15 @@ public void incrementTask() {
       pendingTasksUpdater.incrementAndGet(this);
    }
 
-   public void addTask(OperationContext context,
+   public int addTask(OperationContext context,
                                     PagedMessage message,
                                     Transaction tx,
-                                    RouteContextList listCtx) {
+                                    RouteContextList listCtx, boolean 
useFlowControl) {
 
       logger.trace("Adding paged message {} to paged writer", message);
 
       int credits = Math.min(message.getEncodeSize() + 
PageReadWriter.SIZE_RECORD, maxCredits);
-      writeCredits.acquireUninterruptibly(credits);
+      //writeCredits.acquireUninterruptibly(credits);

Review Comment:
   oops.. thanks... I forgot to remove it...
   
   I kept adding it back and forth during my testing (to reproduce the issue) 
and I forgot to remove it.. thanks





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

    Worklog Id:     (was: 967166)
    Time Spent: 40m  (was: 0.5h)

> Replication start will deadlock / starve if PageTimedWriter is flow controlled
> ------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-5441
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5441
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.40.0
>            Reporter: Clebert Suconic
>            Assignee: Clebert Suconic
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.41.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to