rpuch commented on code in PR #4642:
URL: https://github.com/apache/ignite-3/pull/4642#discussion_r1820579977


##########
modules/metastorage/src/main/java/org/apache/ignite/internal/metastorage/server/WatchProcessor.java:
##########
@@ -341,11 +344,20 @@ public void advanceSafeTime(HybridTimestamp time) {
                 .thenRunAsync(() -> 
watchEventHandlingCallback.onSafeTimeAdvanced(time), watchExecutor)
                 .whenComplete((ignored, e) -> {
                     if (e != null) {
-                        failureManager.process(new 
FailureContext(CRITICAL_ERROR, e));
+                        
notifyFailureHandlerOnFirstFailureInNotificationChain(e);
                     }
                 });
     }
 
+    private void 
notifyFailureHandlerOnFirstFailureInNotificationChain(Throwable e) {
+        if (firedFailureOnChain.compareAndSet(false, true)) {

Review Comment:
   We'll probably still use a no-op handler in tests, and nodes in tests should 
not DOS the user (as this will make debugging way harder)



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to