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
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]