You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cs...@apache.org on 2024/04/18 15:00:42 UTC

(sling-org-apache-sling-distribution-journal) branch master updated: SLING-12274: Catch runtime exception also when executing invalidate request. (#142)

This is an automated email from the ASF dual-hosted git repository.

cschneider pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal.git


The following commit(s) were added to refs/heads/master by this push:
     new 302be3b  SLING-12274: Catch runtime exception also when executing invalidate request. (#142)
302be3b is described below

commit 302be3bb7a1a60c534f7f3647b888e88448db6ed
Author: Danilo Banjac <53...@users.noreply.github.com>
AuthorDate: Thu Apr 18 17:00:36 2024 +0200

    SLING-12274: Catch runtime exception also when executing invalidate request. (#142)
    
    Co-authored-by: Danilo Banjac <db...@adobe.com>
---
 .../org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java b/src/main/java/org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java
index 98e8298..33e3df4 100644
--- a/src/main/java/org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java
+++ b/src/main/java/org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java
@@ -199,7 +199,7 @@ public class BookKeeper {
             subscriberMetrics.getPackageStatusCounter(Status.IMPORTED).increment();
             subscriberMetrics.getInvalidationProcessDuration().update((currentTimeMillis() - invalidationStartTime), TimeUnit.MILLISECONDS);
             subscriberMetrics.getInvalidationProcessSuccess().increment();
-        } catch (LoginException | PersistenceException | InvalidationProcessException e) {
+        } catch (LoginException | PersistenceException | InvalidationProcessException | RuntimeException e) {
             failure(pkgMsg, offset, e);
         }
     }