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

marcuse pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 7f354571f3 Fix startup ExceptionInInitializerError when upgrade from 
5.0-beta1 to trunk
7f354571f3 is described below

commit 7f354571f3b4cb96a734749969612f4c743e437a
Author: maoling <maol...@apache.org>
AuthorDate: Wed Jan 10 00:30:00 2024 +0800

    Fix startup ExceptionInInitializerError when upgrade from 5.0-beta1 to trunk
    
    Patch by Ling Mao; reviewed by marcuse for CASSANDRA-19263
---
 src/java/org/apache/cassandra/net/MessagingService.java    | 2 ++
 src/java/org/apache/cassandra/service/CassandraDaemon.java | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/java/org/apache/cassandra/net/MessagingService.java 
b/src/java/org/apache/cassandra/net/MessagingService.java
index d8512103da..8859d1a330 100644
--- a/src/java/org/apache/cassandra/net/MessagingService.java
+++ b/src/java/org/apache/cassandra/net/MessagingService.java
@@ -226,6 +226,8 @@ public class MessagingService extends 
MessagingServiceMBeanImpl implements Messa
 
         public static final Version CURRENT;
 
+        private static final Logger logger = 
LoggerFactory.getLogger(Version.class);
+
         static
         {
              if (DatabaseDescriptor.getStorageCompatibilityMode().isBefore(5))
diff --git a/src/java/org/apache/cassandra/service/CassandraDaemon.java 
b/src/java/org/apache/cassandra/service/CassandraDaemon.java
index 504f715347..8518a9ba99 100644
--- a/src/java/org/apache/cassandra/service/CassandraDaemon.java
+++ b/src/java/org/apache/cassandra/service/CassandraDaemon.java
@@ -271,7 +271,7 @@ public class CassandraDaemon
         }
         catch (InterruptedException | ExecutionException | IOException e)
         {
-            throw new AssertionError("Can't initialize cluster metadata 
service");
+            throw new AssertionError("Can't initialize cluster metadata 
service", e);
         }
         catch (StartupException e)
         {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to