sfc-gh-kbogusz commented on code in PR #10918:
URL: https://github.com/apache/nifi/pull/10918#discussion_r2827124757


##########
nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/repository/StandardProcessSession.java:
##########
@@ -4029,6 +4032,7 @@ private void copyCheckpoint(final StandardProcessSession 
session, final List<Pro
             mergeMapsWithMutableValue(this.connectionCounts, 
session.connectionCounts, (destination, toMerge) -> destination.add(toMerge));
             mergeMaps(this.countersOnCommit, session.countersOnCommit, 
Long::sum);
             mergeMaps(this.immediateCounters, session.immediateCounters, 
Long::sum);
+            
this.gaugeRecordsSessionCommitted.addAll(session.gaugeRecordsSessionCommitted);

Review Comment:
   Since `session.gaugeRecordsSessionCommitted` is being lazily initialized, 
don't we need a `null` check here?



-- 
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