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 4251c28 Removed unused methods from Compactor and
CompactionCoordinator (#2168)
4251c28 is described below
commit 4251c283a41c300ea485ed23e7eebb09ba5fdea4
Author: Dave Marion
AuthorDate: Wed Jun 16 16:30:23 2021 -0400
Removed unused methods from Compactor and CompactionCoordinator (#2168)
Removed:
Compactor.cancel from the Thrift API and class
CompactionCoordinator.getMetadataEntryForExtent()
CompactionCoodinator.getCompactorConnection()
Closes #2159
---
.../core/compaction/thrift/CompactorService.java | 1118
core/src/main/thrift/compaction-coordinator.thrift | 11 -
.../coordinator/CompactionCoordinator.java | 24 -
.../coordinator/CompactionCoordinatorTest.java | 17 -
.../org/apache/accumulo/compactor/Compactor.java | 23 -
5 files changed, 1193 deletions(-)
diff --git
a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/CompactorService.java
b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/CompactorService.java
index d049564..4530c5f 100644
---
a/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/CompactorService.java
+++
b/core/src/main/thrift-gen-java/org/apache/accumulo/core/compaction/thrift/CompactorService.java
@@ -29,8 +29,6 @@ public class CompactorService {
public interface Iface {
-public void cancel(org.apache.accumulo.core.trace.thrift.TInfo tinfo,
org.apache.accumulo.core.securityImpl.thrift.TCredentials credentials,
java.lang.String externalCompactionId) throws UnknownCompactionIdException,
org.apache.thrift.TException;
-
public org.apache.accumulo.core.tabletserver.thrift.TExternalCompactionJob
getRunningCompaction(org.apache.accumulo.core.trace.thrift.TInfo tinfo,
org.apache.accumulo.core.securityImpl.thrift.TCredentials credentials) throws
org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException,
org.apache.thrift.TException;
public java.lang.String
getRunningCompactionId(org.apache.accumulo.core.trace.thrift.TInfo tinfo,
org.apache.accumulo.core.securityImpl.thrift.TCredentials credentials) throws
org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException,
org.apache.thrift.TException;
@@ -41,8 +39,6 @@ public class CompactorService {
public interface AsyncIface {
-public void cancel(org.apache.accumulo.core.trace.thrift.TInfo tinfo,
org.apache.accumulo.core.securityImpl.thrift.TCredentials credentials,
java.lang.String externalCompactionId,
org.apache.thrift.async.AsyncMethodCallback resultHandler) throws
org.apache.thrift.TException;
-
public void
getRunningCompaction(org.apache.accumulo.core.trace.thrift.TInfo tinfo,
org.apache.accumulo.core.securityImpl.thrift.TCredentials credentials,
org.apache.thrift.async.AsyncMethodCallback
resultHandler) throws org.apache.thrift.TException;
public void
getRunningCompactionId(org.apache.accumulo.core.trace.thrift.TInfo tinfo,
org.apache.accumulo.core.securityImpl.thrift.TCredentials credentials,
org.apache.thrift.async.AsyncMethodCallback resultHandler)
throws org.apache.thrift.TException;
@@ -71,31 +67,6 @@ public class CompactorService {
super(iprot, oprot);
}
-public void cancel(org.apache.accumulo.core.trace.thrift.TInfo tinfo,
org.apache.accumulo.core.securityImpl.thrift.TCredentials credentials,
java.lang.String externalCompactionId) throws UnknownCompactionIdException,
org.apache.thrift.TException
-{
- send_cancel(tinfo, credentials, externalCompactionId);
- recv_cancel();
-}
-
-public void send_cancel(org.apache.accumulo.core.trace.thrift.TInfo tinfo,
org.apache.accumulo.core.securityImpl.thrift.TCredentials credentials,
java.lang.String externalCompactionId) throws org.apache.thrift.TException
-{
- cancel_args args = new cancel_args();
- args.setTinfo(tinfo);
- args.setCredentials(credentials);
- args.setExternalCompactionId(externalCompactionId);
- sendBase("cancel", args);
-}
-
-public void recv_cancel() throws UnknownCompactionIdException,
org.apache.thrift.TException
-{
- cancel_result result = new cancel_result();
- receiveBase(result, "cancel");
- if (result.e != null) {
-throw result.e;
- }
- return;
-}
-
public org.apache.accumulo.core.tabletserver.thrift.TExternalCompactionJob
getRunningCompaction(org.apache.accumulo.core.trace.thrift.TInfo tinfo,
org.apache.accumulo.core.securityImpl.thrift.TCredentials credentials) throws
org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException,
org.apache.thrift.TException
{
send_getRunningCompaction(tinfo, credentials);
@@ -195,44 +166,6