This is an automated email from the ASF dual-hosted git repository. dlmarion 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 14ed094fd9 Minimize registered Thrift processor names (#2922) 14ed094fd9 is described below commit 14ed094fd9d3a4d8ec525831992709fc04bd25a9 Author: Dave Marion <dlmar...@apache.org> AuthorDate: Mon Sep 12 07:18:19 2022 -0400 Minimize registered Thrift processor names (#2922) Use shorter name for the registered Thrift processors. The side effect here is that a smaller number of bytes is sent over the wire. Closes #2642 --- .../core/rpc/clients/ThriftClientTypes.java | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/core/src/main/java/org/apache/accumulo/core/rpc/clients/ThriftClientTypes.java b/core/src/main/java/org/apache/accumulo/core/rpc/clients/ThriftClientTypes.java index c47a926b9f..7b7eb8d6e4 100644 --- a/core/src/main/java/org/apache/accumulo/core/rpc/clients/ThriftClientTypes.java +++ b/core/src/main/java/org/apache/accumulo/core/rpc/clients/ThriftClientTypes.java @@ -32,33 +32,31 @@ import org.apache.thrift.protocol.TProtocol; public abstract class ThriftClientTypes<C extends TServiceClient> { - public static final ClientServiceThriftClient CLIENT = - new ClientServiceThriftClient("ClientService"); + public static final ClientServiceThriftClient CLIENT = new ClientServiceThriftClient("client"); public static final CompactorServiceThriftClient COMPACTOR = - new CompactorServiceThriftClient("CompactorService"); + new CompactorServiceThriftClient("compactor"); public static final CompactionCoordinatorServiceThriftClient COORDINATOR = - new CompactionCoordinatorServiceThriftClient("CompactionCoordinatorService"); + new CompactionCoordinatorServiceThriftClient("coordinator"); - public static final FateThriftClient FATE = new FateThriftClient("FateService"); + public static final FateThriftClient FATE = new FateThriftClient("fate"); - public static final GCMonitorServiceThriftClient GC = - new GCMonitorServiceThriftClient("GCMonitorService"); + public static final GCMonitorServiceThriftClient GC = new GCMonitorServiceThriftClient("gc"); - public static final ManagerThriftClient MANAGER = new ManagerThriftClient("ManagerClientService"); + public static final ManagerThriftClient MANAGER = new ManagerThriftClient("mgr"); public static final ReplicationCoordinatorThriftClient REPLICATION_COORDINATOR = - new ReplicationCoordinatorThriftClient("ReplicationCoordinator"); + new ReplicationCoordinatorThriftClient("replCoord"); public static final ReplicationServicerThriftClient REPLICATION_SERVICER = - new ReplicationServicerThriftClient("ReplicationServicer"); + new ReplicationServicerThriftClient("replServ"); public static final TabletServerThriftClient TABLET_SERVER = - new TabletServerThriftClient("TabletClientService"); + new TabletServerThriftClient("tablet"); public static final TabletScanClientServiceThriftClient TABLET_SCAN = - new TabletScanClientServiceThriftClient("TabletScanClientService"); + new TabletScanClientServiceThriftClient("scan"); /** * execute method with supplied client returning object of type R