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

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

                Author: ASF GitHub Bot
            Created on: 07/Jul/23 15:43
            Start Date: 07/Jul/23 15:43
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on code in PR #4526:
URL: https://github.com/apache/activemq-artemis/pull/4526#discussion_r1256030195


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/OperationContextImpl.java:
##########
@@ -104,6 +110,24 @@ public static void setContext(final OperationContext 
context) {
 
    private final Executor executor;
 
+   private static int maxDebugTrackers = Integer.parseInt(
+      System.getProperty("ARTEMIS_OPCONTEXT_MAX_DEBUG_TRACKERS", "0"));
+
+   private Buffer debugTrackers = OperationContextImpl.maxDebugTrackers > 0 ?
+      BufferUtils.synchronizedBuffer(new 
CircularFifoBuffer(OperationContextImpl.maxDebugTrackers)) : null;
+
+   public static int getMaxDebugTrackers() {
+      return OperationContextImpl.maxDebugTrackers;
+   }
+
+   public static void setMaxDebugTrackers(int maxDebugTrackers) {

Review Comment:
   no need to be public, the test is the same package I think





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

    Worklog Id:     (was: 869833)
    Time Spent: 1h 50m  (was: 1h 40m)

> Add management method to close stuck server sessions
> ----------------------------------------------------
>
>                 Key: ARTEMIS-4332
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4332
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>            Reporter: Domenico Francesco Bruscino
>            Assignee: Domenico Francesco Bruscino
>            Priority: Major
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> In rare cases a store operation could silently fails or starves, blocking the 
> related server session and all delivering messages. Those server sessions can 
> be closed adding a management method that cleans their operation context 
> before closing them.



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

Reply via email to