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

ddanielr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/main by this push:
     new a4c2bd520e Fix build failure on 2.1 merge to main
a4c2bd520e is described below

commit a4c2bd520e4c7d495fa5937035bea556063f3eab
Author: Daniel Roberts ddanielr <[email protected]>
AuthorDate: Thu Jul 24 23:41:46 2025 +0000

    Fix build failure on 2.1 merge to main
    
    Adds in a default constructor to avoid Unsafe error thrown when running
    ServiceStatusReportTest
---
 .../server/util/serviceStatus/ServiceStatusReport.java         | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git 
a/server/base/src/main/java/org/apache/accumulo/server/util/serviceStatus/ServiceStatusReport.java
 
b/server/base/src/main/java/org/apache/accumulo/server/util/serviceStatus/ServiceStatusReport.java
index 2deb9be4fb..7efc6d5a37 100644
--- 
a/server/base/src/main/java/org/apache/accumulo/server/util/serviceStatus/ServiceStatusReport.java
+++ 
b/server/base/src/main/java/org/apache/accumulo/server/util/serviceStatus/ServiceStatusReport.java
@@ -54,6 +54,16 @@ public class ServiceStatusReport {
   private final boolean showHosts;
   private final Map<ReportKey,StatusSummary> summaries;
 
+  // Gson requires a default constructor when JDK Unsafe usage is disabled
+  @SuppressWarnings("unused")
+  private ServiceStatusReport() {
+    reportTime = "";
+    zkReadErrors = 0;
+    showHosts = false;
+    summaries = Map.of();
+
+  }
+
   public ServiceStatusReport(final Map<ReportKey,StatusSummary> summaries,
       final boolean showHosts) {
     reportTime = rptTimeFmt.format(ZonedDateTime.now(ZoneId.of("UTC")));

Reply via email to