Lalant commented on code in PR #7428:
URL: https://github.com/apache/ignite-3/pull/7428#discussion_r2768172140


##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/metrics/TransactionMetricsSource.java:
##########
@@ -43,6 +49,8 @@ public class TransactionMetricsSource extends 
AbstractMetricSource<Holder> {
     /** Clock service to calculate a timestamp for rolled back transactions. */
     private final ClockService clockService;
 
+    private final AtomicReference<LongSupplier> pendingWriteIntentsSupplierRef 
= new AtomicReference<>(() -> 0L);

Review Comment:
   Volatile is 100%, regarding interface I am not so sure, we want to provide 
one value and the meaning of the value is defined by setter and the field name. 
It will be too verbose, 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]

Reply via email to