zstan commented on code in PR #3264:
URL: https://github.com/apache/ignite-3/pull/3264#discussion_r1524421626
##########
modules/failure-handler/src/main/java/org/apache/ignite/internal/failure/FailureProcessor.java:
##########
@@ -49,6 +51,8 @@ public class FailureProcessor implements IgniteComponent {
/** Node name. */
private final String nodeName;
+ private volatile @Nullable FailureHandler interceptor;
Review Comment:
it`s matter, check: if you use volatile approach - check can passed but in
next line you can obtain NPE
if (interceptor != null) {
interceptor.onFailure(nodeName, failureCtx);
}
--
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]