You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ct...@apache.org on 2025/05/28 00:50:31 UTC
(accumulo) branch 2.1 updated (b9e227b712 -> a643cc1b7b)
This is an automated email from the ASF dual-hosted git repository.
ctubbsii pushed a change to branch 2.1
in repository https://gitbox.apache.org/repos/asf/accumulo.git
from b9e227b712 Fixed issue with balancer property updates (#5575)
new d958e47310 Trivial cleanup
new a643cc1b7b Fix incorrect name of IT
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
core/src/main/java/org/apache/accumulo/core/util/threads/Threads.java | 4 ----
.../src/main/java/org/apache/accumulo/server/util/TableDiskUsage.java | 1 -
test/src/main/java/org/apache/accumulo/test/LargeReadIT.java | 3 +--
.../test/{ScanServerIT_NoServers.java => ScanServer_NoServersIT.java} | 2 +-
4 files changed, 2 insertions(+), 8 deletions(-)
rename test/src/main/java/org/apache/accumulo/test/{ScanServerIT_NoServers.java => ScanServer_NoServersIT.java} (99%)
(accumulo) 01/02: Trivial cleanup
Posted by ct...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ctubbsii pushed a commit to branch 2.1
in repository https://gitbox.apache.org/repos/asf/accumulo.git
commit d958e47310ed425aa3be46b1ac341a431a001d9c
Author: Christopher Tubbs <ct...@apache.org>
AuthorDate: Tue May 27 17:29:54 2025 -0400
Trivial cleanup
* Remove unused variables and warnings
* Fix false-positive resource leak IDE warning by using ServerContext
rather than casting AccumuloClient to ClientContext in LargeReadIT
---
core/src/main/java/org/apache/accumulo/core/util/threads/Threads.java | 4 ----
.../src/main/java/org/apache/accumulo/server/util/TableDiskUsage.java | 1 -
test/src/main/java/org/apache/accumulo/test/LargeReadIT.java | 3 +--
3 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/core/src/main/java/org/apache/accumulo/core/util/threads/Threads.java b/core/src/main/java/org/apache/accumulo/core/util/threads/Threads.java
index 3ff86913b0..fe962ee901 100644
--- a/core/src/main/java/org/apache/accumulo/core/util/threads/Threads.java
+++ b/core/src/main/java/org/apache/accumulo/core/util/threads/Threads.java
@@ -22,13 +22,9 @@ import java.lang.Thread.UncaughtExceptionHandler;
import java.util.OptionalInt;
import org.apache.accumulo.core.trace.TraceUtil;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
public class Threads {
- private static final Logger log = LoggerFactory.getLogger(Threads.class);
-
public static final UncaughtExceptionHandler UEH = new AccumuloUncaughtExceptionHandler();
public static class AccumuloDaemonThread extends Thread {
diff --git a/server/base/src/main/java/org/apache/accumulo/server/util/TableDiskUsage.java b/server/base/src/main/java/org/apache/accumulo/server/util/TableDiskUsage.java
index 029ad0bd80..aebe9bcd47 100644
--- a/server/base/src/main/java/org/apache/accumulo/server/util/TableDiskUsage.java
+++ b/server/base/src/main/java/org/apache/accumulo/server/util/TableDiskUsage.java
@@ -43,7 +43,6 @@ import org.apache.accumulo.core.clientImpl.ClientContext;
import org.apache.accumulo.core.data.TableId;
import org.apache.accumulo.core.metadata.StoredTabletFile;
import org.apache.accumulo.core.metadata.schema.DataFileValue;
-import org.apache.accumulo.core.metadata.schema.MetadataSchema;
import org.apache.accumulo.core.trace.TraceUtil;
import org.apache.accumulo.core.util.NumUtil;
import org.apache.accumulo.server.cli.ServerUtilOpts;
diff --git a/test/src/main/java/org/apache/accumulo/test/LargeReadIT.java b/test/src/main/java/org/apache/accumulo/test/LargeReadIT.java
index bcb7ef0a9b..3e11a1fb75 100644
--- a/test/src/main/java/org/apache/accumulo/test/LargeReadIT.java
+++ b/test/src/main/java/org/apache/accumulo/test/LargeReadIT.java
@@ -33,7 +33,6 @@ import org.apache.accumulo.core.client.Accumulo;
import org.apache.accumulo.core.client.AccumuloClient;
import org.apache.accumulo.core.client.Scanner;
import org.apache.accumulo.core.client.admin.NewTableConfiguration;
-import org.apache.accumulo.core.clientImpl.ClientContext;
import org.apache.accumulo.core.conf.Property;
import org.apache.accumulo.core.data.Key;
import org.apache.accumulo.core.data.Mutation;
@@ -144,7 +143,7 @@ public class LargeReadIT extends AccumuloClusterHarness {
}
// expected data to be in memory for this part of the test, so verify that
- var ctx = ((ClientContext) client);
+ var ctx = getCluster().getServerContext();
try (var tablets = ctx.getAmple().readTablets().forTable(ctx.getTableId(tableName))
.fetch(TabletMetadata.ColumnType.FILES).build()) {
assertEquals(0, tablets.stream().count());
(accumulo) 02/02: Fix incorrect name of IT
Posted by ct...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ctubbsii pushed a commit to branch 2.1
in repository https://gitbox.apache.org/repos/asf/accumulo.git
commit a643cc1b7be38103f5478d060ff3eafa38c833ba
Author: Christopher Tubbs <ct...@apache.org>
AuthorDate: Tue May 27 18:33:13 2025 -0400
Fix incorrect name of IT
* Fix the name of ScanServerIT_NoServers so it matches the pattern
expected by the maven-failsafe-plugin; without this fix, it will not
run automatically
---
.../test/{ScanServerIT_NoServers.java => ScanServer_NoServersIT.java} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/src/main/java/org/apache/accumulo/test/ScanServerIT_NoServers.java b/test/src/main/java/org/apache/accumulo/test/ScanServer_NoServersIT.java
similarity index 99%
rename from test/src/main/java/org/apache/accumulo/test/ScanServerIT_NoServers.java
rename to test/src/main/java/org/apache/accumulo/test/ScanServer_NoServersIT.java
index f8dde71bbf..5e4316b3ae 100644
--- a/test/src/main/java/org/apache/accumulo/test/ScanServerIT_NoServers.java
+++ b/test/src/main/java/org/apache/accumulo/test/ScanServer_NoServersIT.java
@@ -50,7 +50,7 @@ import org.junit.jupiter.api.Test;
import com.google.common.collect.Iterables;
@Tag(MINI_CLUSTER_ONLY)
-public class ScanServerIT_NoServers extends SharedMiniClusterBase {
+public class ScanServer_NoServersIT extends SharedMiniClusterBase {
// This is the same as ScanServerIT, but without any scan servers running.
// This tests the cases where the client falls back to the Tablet Servers