This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch 2.1
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/2.1 by this push:
new ee938f12a8 Remove warnings
ee938f12a8 is described below
commit ee938f12a871c6e3fd4ed8f57b7ba85127c0094e
Author: Christopher Tubbs <[email protected]>
AuthorDate: Thu Apr 30 18:07:23 2026 -0400
Remove warnings
* Remove unused log
* Remove warning about unclosed resource (false-positive) by using
ServerContext for system state alteration instead of casting the
ClientContext
---
core/src/main/java/org/apache/accumulo/core/clientImpl/Namespaces.java | 3 ---
test/src/main/java/org/apache/accumulo/test/functional/ScannerIT.java | 3 +--
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git
a/core/src/main/java/org/apache/accumulo/core/clientImpl/Namespaces.java
b/core/src/main/java/org/apache/accumulo/core/clientImpl/Namespaces.java
index a80ab369b3..0ebe0368a1 100644
--- a/core/src/main/java/org/apache/accumulo/core/clientImpl/Namespaces.java
+++ b/core/src/main/java/org/apache/accumulo/core/clientImpl/Namespaces.java
@@ -34,11 +34,8 @@ import org.apache.accumulo.core.data.NamespaceId;
import org.apache.accumulo.core.data.TableId;
import org.apache.accumulo.core.fate.zookeeper.ZooCache;
import org.apache.accumulo.core.util.tables.TableNameUtil;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
public class Namespaces {
- private static final Logger log = LoggerFactory.getLogger(Namespaces.class);
public static boolean exists(ClientContext context, NamespaceId namespaceId)
{
ZooCache zc = context.getZooCache();
diff --git
a/test/src/main/java/org/apache/accumulo/test/functional/ScannerIT.java
b/test/src/main/java/org/apache/accumulo/test/functional/ScannerIT.java
index 2a6d5d9287..fe979b8351 100644
--- a/test/src/main/java/org/apache/accumulo/test/functional/ScannerIT.java
+++ b/test/src/main/java/org/apache/accumulo/test/functional/ScannerIT.java
@@ -48,7 +48,6 @@ import org.apache.accumulo.core.client.IteratorSetting;
import org.apache.accumulo.core.client.Scanner;
import org.apache.accumulo.core.client.ScannerBase.ConsistencyLevel;
import org.apache.accumulo.core.client.TimedOutException;
-import org.apache.accumulo.core.clientImpl.ClientContext;
import org.apache.accumulo.core.clientImpl.ThriftScanner;
import org.apache.accumulo.core.conf.ClientProperty;
import org.apache.accumulo.core.conf.Property;
@@ -373,7 +372,7 @@ public class ScannerIT extends ConfigurableMacBase {
client.tableOperations().flush(table, null, null, true);
- var ctx = (ClientContext) client;
+ var ctx = getCluster().getServerContext();
var tableId = ctx.getTableId(table);
// Delete the tablets file to cause an IOException during opening the
file. By default