From 631b6afc41ba3bae3db88cad766c58e430959960 Mon Sep 17 00:00:00 2001 From: Josh Elser Date: Wed, 14 Sep 2016 20:24:01 -0400 Subject: [PATCH 1/4] ACCUMULO-4456 Add a Thrift exception to handle when a service is not the active instance If we don't use a named thrift exception, the client will not be able to implicitly retry the operation as we want it to. Closes apache/accumulo#152 --- .../core/client/impl/MasterClient.java | 8 + .../core/client/impl/TableOperationsImpl.java | 27 +- .../ThriftNotActiveServiceException.java | 301 +++ .../core/master/thrift/FateService.java | 532 +++- .../master/thrift/MasterClientService.java | 2144 ++++++++++++++++- core/src/main/thrift/client.thrift | 4 + core/src/main/thrift/master.thrift | 40 +- .../impl/MiniAccumuloClusterImpl.java | 33 +- .../apache/accumulo/proxy/ProxyServer.java | 1 + ...ghlyAvailableServiceInvocationHandler.java | 17 +- .../server/rpc/NotActiveServiceException.java | 2 +- .../org/apache/accumulo/master/Master.java | 14 +- .../shell/commands/ListBulkCommand.java | 24 +- .../test/DetectDeadTabletServersIT.java | 23 +- .../apache/accumulo/test/GetMasterStats.java | 24 +- .../continuous/ContinuousStatsCollector.java | 59 +- .../BalanceAfterCommsFailureIT.java | 22 +- .../BalanceInPresenceOfOfflineTableIT.java | 33 +- .../test/functional/DynamicThreadPoolsIT.java | 19 +- .../test/functional/MetadataMaxFilesIT.java | 5 + .../functional/SimpleBalancerFairnessIT.java | 19 +- 21 files changed, 3071 insertions(+), 280 deletions(-) create mode 100644 core/src/main/java/org/apache/accumulo/core/client/impl/thrift/ThriftNotActiveServiceException.java diff --git a/core/src/main/java/org/apache/accumulo/core/client/impl/MasterClient.java b/core/src/main/java/org/apache/accumulo/core/client/impl/MasterClient.java index 894e29ab240..a73a3ad752c 100644 --- a/core/src/main/java/org/apache/accumulo/core/client/impl/MasterClient.java +++ b/core/src/main/java/org/apache/accumulo/core/client/impl/MasterClient.java @@ -26,6 +26,7 @@ import org.apache.accumulo.core.client.AccumuloSecurityException; import org.apache.accumulo.core.client.NamespaceNotFoundException; import org.apache.accumulo.core.client.TableNotFoundException; +import org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException; import org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException; import org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException; import org.apache.accumulo.core.master.thrift.MasterClientService; @@ -112,6 +113,10 @@ public static T execute(ClientContext context, ClientExecReturn try { client = MasterClient.getConnectionWithRetry(context); client.executeFateOperation(Tracer.traceInfo(), context.rpcCreds(), opid, op, args, opts, autoCleanUp); - break; + return; } catch (TTransportException tte) { log.debug("Failed to call executeFateOperation(), retrying ... ", tte); sleepUninterruptibly(100, TimeUnit.MILLISECONDS); + } catch (ThriftNotActiveServiceException e) { + // Let it loop, fetching a new location + log.debug("Contacted a Master which is no longer active, retrying"); + sleepUninterruptibly(100, TimeUnit.MILLISECONDS); } finally { MasterClient.close(client); } @@ -266,6 +275,10 @@ private String waitForFateOperation(long opid) throws ThriftSecurityException, T } catch (TTransportException tte) { log.debug("Failed to call waitForFateOperation(), retrying ... ", tte); sleepUninterruptibly(100, TimeUnit.MILLISECONDS); + } catch (ThriftNotActiveServiceException e) { + // Let it loop, fetching a new location + log.debug("Contacted a Master which is no longer active, retrying"); + sleepUninterruptibly(100, TimeUnit.MILLISECONDS); } finally { MasterClient.close(client); } @@ -282,6 +295,10 @@ private void finishFateOperation(long opid) throws ThriftSecurityException, TExc } catch (TTransportException tte) { log.debug("Failed to call finishFateOperation(), retrying ... ", tte); sleepUninterruptibly(100, TimeUnit.MILLISECONDS); + } catch (ThriftNotActiveServiceException e) { + // Let it loop, fetching a new location + log.debug("Contacted a Master which is no longer active, retrying"); + sleepUninterruptibly(100, TimeUnit.MILLISECONDS); } finally { MasterClient.close(client); } @@ -808,6 +825,10 @@ private void _flush(String tableId, Text start, Text end, boolean wait) throws A } catch (TTransportException tte) { log.debug("Failed to call initiateFlush, retrying ... ", tte); sleepUninterruptibly(100, TimeUnit.MILLISECONDS); + } catch (ThriftNotActiveServiceException e) { + // Let it loop, fetching a new location + log.debug("Contacted a Master which is no longer active, retrying"); + sleepUninterruptibly(100, TimeUnit.MILLISECONDS); } finally { MasterClient.close(client); } @@ -823,6 +844,10 @@ private void _flush(String tableId, Text start, Text end, boolean wait) throws A } catch (TTransportException tte) { log.debug("Failed to call initiateFlush, retrying ... ", tte); sleepUninterruptibly(100, TimeUnit.MILLISECONDS); + } catch (ThriftNotActiveServiceException e) { + // Let it loop, fetching a new location + log.debug("Contacted a Master which is no longer active, retrying"); + sleepUninterruptibly(100, TimeUnit.MILLISECONDS); } finally { MasterClient.close(client); } diff --git a/core/src/main/java/org/apache/accumulo/core/client/impl/thrift/ThriftNotActiveServiceException.java b/core/src/main/java/org/apache/accumulo/core/client/impl/thrift/ThriftNotActiveServiceException.java new file mode 100644 index 00000000000..0702486f918 --- /dev/null +++ b/core/src/main/java/org/apache/accumulo/core/client/impl/thrift/ThriftNotActiveServiceException.java @@ -0,0 +1,301 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.accumulo.core.client.impl.thrift; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +public class ThriftNotActiveServiceException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ThriftNotActiveServiceException"); + + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new ThriftNotActiveServiceExceptionStandardSchemeFactory()); + schemes.put(TupleScheme.class, new ThriftNotActiveServiceExceptionTupleSchemeFactory()); + } + + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { +; + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ThriftNotActiveServiceException.class, metaDataMap); + } + + public ThriftNotActiveServiceException() { + } + + /** + * Performs a deep copy on other. + */ + public ThriftNotActiveServiceException(ThriftNotActiveServiceException other) { + } + + public ThriftNotActiveServiceException deepCopy() { + return new ThriftNotActiveServiceException(this); + } + + @Override + public void clear() { + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof ThriftNotActiveServiceException) + return this.equals((ThriftNotActiveServiceException)that); + return false; + } + + public boolean equals(ThriftNotActiveServiceException that) { + if (that == null) + return false; + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + return list.hashCode(); + } + + @Override + public int compareTo(ThriftNotActiveServiceException other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("ThriftNotActiveServiceException("); + boolean first = true; + + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class ThriftNotActiveServiceExceptionStandardSchemeFactory implements SchemeFactory { + public ThriftNotActiveServiceExceptionStandardScheme getScheme() { + return new ThriftNotActiveServiceExceptionStandardScheme(); + } + } + + private static class ThriftNotActiveServiceExceptionStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, ThriftNotActiveServiceException struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, ThriftNotActiveServiceException struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class ThriftNotActiveServiceExceptionTupleSchemeFactory implements SchemeFactory { + public ThriftNotActiveServiceExceptionTupleScheme getScheme() { + return new ThriftNotActiveServiceExceptionTupleScheme(); + } + } + + private static class ThriftNotActiveServiceExceptionTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, ThriftNotActiveServiceException struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, ThriftNotActiveServiceException struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + } + } + +} + diff --git a/core/src/main/java/org/apache/accumulo/core/master/thrift/FateService.java b/core/src/main/java/org/apache/accumulo/core/master/thrift/FateService.java index 7fe09743d55..cc49eca9d3e 100644 --- a/core/src/main/java/org/apache/accumulo/core/master/thrift/FateService.java +++ b/core/src/main/java/org/apache/accumulo/core/master/thrift/FateService.java @@ -55,13 +55,13 @@ public class FateService { public interface Iface { - public long beginFateOperation(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException; + public long beginFateOperation(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public void executeFateOperation(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, long opid, FateOperation op, List arguments, Map options, boolean autoClean) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException; + public void executeFateOperation(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, long opid, FateOperation op, List arguments, Map options, boolean autoClean) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public String waitForFateOperation(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, long opid) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException; + public String waitForFateOperation(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, long opid) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public void finishFateOperation(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, long opid) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException; + public void finishFateOperation(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, long opid) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; } @@ -97,7 +97,7 @@ public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.prot super(iprot, oprot); } - public long beginFateOperation(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public long beginFateOperation(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_beginFateOperation(tinfo, credentials); return recv_beginFateOperation(); @@ -111,7 +111,7 @@ public void send_beginFateOperation(org.apache.accumulo.core.trace.thrift.TInfo sendBase("beginFateOperation", args); } - public long recv_beginFateOperation() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public long recv_beginFateOperation() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { beginFateOperation_result result = new beginFateOperation_result(); receiveBase(result, "beginFateOperation"); @@ -121,10 +121,13 @@ public long recv_beginFateOperation() throws org.apache.accumulo.core.client.imp if (result.sec != null) { throw result.sec; } + if (result.tnase != null) { + throw result.tnase; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "beginFateOperation failed: unknown result"); } - public void executeFateOperation(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, long opid, FateOperation op, List arguments, Map options, boolean autoClean) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException + public void executeFateOperation(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, long opid, FateOperation op, List arguments, Map options, boolean autoClean) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_executeFateOperation(tinfo, credentials, opid, op, arguments, options, autoClean); recv_executeFateOperation(); @@ -143,7 +146,7 @@ public void send_executeFateOperation(org.apache.accumulo.core.trace.thrift.TInf sendBase("executeFateOperation", args); } - public void recv_executeFateOperation() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException + public void recv_executeFateOperation() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { executeFateOperation_result result = new executeFateOperation_result(); receiveBase(result, "executeFateOperation"); @@ -153,10 +156,13 @@ public void recv_executeFateOperation() throws org.apache.accumulo.core.client.i if (result.tope != null) { throw result.tope; } + if (result.tnase != null) { + throw result.tnase; + } return; } - public String waitForFateOperation(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, long opid) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException + public String waitForFateOperation(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, long opid) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_waitForFateOperation(tinfo, credentials, opid); return recv_waitForFateOperation(); @@ -171,7 +177,7 @@ public void send_waitForFateOperation(org.apache.accumulo.core.trace.thrift.TInf sendBase("waitForFateOperation", args); } - public String recv_waitForFateOperation() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException + public String recv_waitForFateOperation() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { waitForFateOperation_result result = new waitForFateOperation_result(); receiveBase(result, "waitForFateOperation"); @@ -184,10 +190,13 @@ public String recv_waitForFateOperation() throws org.apache.accumulo.core.client if (result.tope != null) { throw result.tope; } + if (result.tnase != null) { + throw result.tnase; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "waitForFateOperation failed: unknown result"); } - public void finishFateOperation(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, long opid) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public void finishFateOperation(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, long opid) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_finishFateOperation(tinfo, credentials, opid); recv_finishFateOperation(); @@ -202,13 +211,16 @@ public void send_finishFateOperation(org.apache.accumulo.core.trace.thrift.TInfo sendBase("finishFateOperation", args); } - public void recv_finishFateOperation() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public void recv_finishFateOperation() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { finishFateOperation_result result = new finishFateOperation_result(); receiveBase(result, "finishFateOperation"); if (result.sec != null) { throw result.sec; } + if (result.tnase != null) { + throw result.tnase; + } return; } @@ -255,7 +267,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public long getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException { + public long getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -305,7 +317,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException { + public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -343,7 +355,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public String getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException { + public String getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -381,7 +393,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException { + public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -431,6 +443,8 @@ public beginFateOperation_result getResult(I iface, beginFateOperation_args args result.setSuccessIsSet(true); } catch (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) { result.sec = sec; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -457,6 +471,8 @@ public executeFateOperation_result getResult(I iface, executeFateOperation_args result.sec = sec; } catch (org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope) { result.tope = tope; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -483,6 +499,8 @@ public waitForFateOperation_result getResult(I iface, waitForFateOperation_args result.sec = sec; } catch (org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope) { result.tope = tope; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -507,6 +525,8 @@ public finishFateOperation_result getResult(I iface, finishFateOperation_args ar iface.finishFateOperation(args.tinfo, args.credentials, args.opid); } catch (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) { result.sec = sec; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -564,6 +584,11 @@ public void onError(Exception e) { result.sec = (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException) e; result.setSecIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -625,6 +650,11 @@ else if (e instanceof org.apache.accumulo.core.client.impl.thrift.Th result.tope = (org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException) e; result.setTopeIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -687,6 +717,11 @@ else if (e instanceof org.apache.accumulo.core.client.impl.thrift.Th result.tope = (org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException) e; result.setTopeIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -743,6 +778,11 @@ public void onError(Exception e) { result.sec = (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException) e; result.setSecIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -1252,6 +1292,7 @@ public static class beginFateOperation_result implements org.apache.thrift.TBase private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0); private static final org.apache.thrift.protocol.TField SEC_FIELD_DESC = new org.apache.thrift.protocol.TField("sec", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField TNASE_FIELD_DESC = new org.apache.thrift.protocol.TField("tnase", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -1261,11 +1302,13 @@ public static class beginFateOperation_result implements org.apache.thrift.TBase public long success; // required public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec; // required + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), - SEC((short)1, "sec"); + SEC((short)1, "sec"), + TNASE((short)2, "tnase"); private static final Map byName = new HashMap(); @@ -1284,6 +1327,8 @@ public static _Fields findByThriftId(int fieldId) { return SUCCESS; case 1: // SEC return SEC; + case 2: // TNASE + return TNASE; default: return null; } @@ -1333,6 +1378,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.SEC, new org.apache.thrift.meta_data.FieldMetaData("sec", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(beginFateOperation_result.class, metaDataMap); } @@ -1342,12 +1389,14 @@ public beginFateOperation_result() { public beginFateOperation_result( long success, - org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) + org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.success = success; setSuccessIsSet(true); this.sec = sec; + this.tnase = tnase; } /** @@ -1359,6 +1408,9 @@ public beginFateOperation_result(beginFateOperation_result other) { if (other.isSetSec()) { this.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(other.sec); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public beginFateOperation_result deepCopy() { @@ -1370,6 +1422,7 @@ public void clear() { setSuccessIsSet(false); this.success = 0; this.sec = null; + this.tnase = null; } public long getSuccess() { @@ -1419,6 +1472,30 @@ public void setSecIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public beginFateOperation_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -1437,6 +1514,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -1448,6 +1533,9 @@ public Object getFieldValue(_Fields field) { case SEC: return getSec(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -1463,6 +1551,8 @@ public boolean isSet(_Fields field) { return isSetSuccess(); case SEC: return isSetSec(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -1498,6 +1588,15 @@ public boolean equals(beginFateOperation_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -1515,6 +1614,11 @@ public int hashCode() { if (present_sec) list.add(sec); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -1546,6 +1650,16 @@ public int compareTo(beginFateOperation_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -1577,6 +1691,14 @@ public String toString() { sb.append(this.sec); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -1639,6 +1761,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, beginFateOperation_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -1664,6 +1795,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, beginFateOperation struct.sec.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1688,19 +1824,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, beginFateOperation_ if (struct.isSetSec()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetTnase()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { oprot.writeI64(struct.success); } if (struct.isSetSec()) { struct.sec.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, beginFateOperation_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); @@ -1710,6 +1852,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, beginFateOperation_r struct.sec.read(iprot); struct.setSecIsSet(true); } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -2830,6 +2977,7 @@ public static class executeFateOperation_result implements org.apache.thrift.TBa private static final org.apache.thrift.protocol.TField SEC_FIELD_DESC = new org.apache.thrift.protocol.TField("sec", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField TOPE_FIELD_DESC = new org.apache.thrift.protocol.TField("tope", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField TNASE_FIELD_DESC = new org.apache.thrift.protocol.TField("tnase", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -2839,11 +2987,13 @@ public static class executeFateOperation_result implements org.apache.thrift.TBa public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec; // required public org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope; // required + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SEC((short)1, "sec"), - TOPE((short)2, "tope"); + TOPE((short)2, "tope"), + TNASE((short)3, "tnase"); private static final Map byName = new HashMap(); @@ -2862,6 +3012,8 @@ public static _Fields findByThriftId(int fieldId) { return SEC; case 2: // TOPE return TOPE; + case 3: // TNASE + return TNASE; default: return null; } @@ -2909,6 +3061,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.TOPE, new org.apache.thrift.meta_data.FieldMetaData("tope", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(executeFateOperation_result.class, metaDataMap); } @@ -2918,11 +3072,13 @@ public executeFateOperation_result() { public executeFateOperation_result( org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, - org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope) + org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.sec = sec; this.tope = tope; + this.tnase = tnase; } /** @@ -2935,6 +3091,9 @@ public executeFateOperation_result(executeFateOperation_result other) { if (other.isSetTope()) { this.tope = new org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException(other.tope); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public executeFateOperation_result deepCopy() { @@ -2945,6 +3104,7 @@ public executeFateOperation_result deepCopy() { public void clear() { this.sec = null; this.tope = null; + this.tnase = null; } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException getSec() { @@ -2995,6 +3155,30 @@ public void setTopeIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public executeFateOperation_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SEC: @@ -3013,6 +3197,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -3024,6 +3216,9 @@ public Object getFieldValue(_Fields field) { case TOPE: return getTope(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -3039,6 +3234,8 @@ public boolean isSet(_Fields field) { return isSetSec(); case TOPE: return isSetTope(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -3074,6 +3271,15 @@ public boolean equals(executeFateOperation_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -3091,6 +3297,11 @@ public int hashCode() { if (present_tope) list.add(tope); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -3122,6 +3333,16 @@ public int compareTo(executeFateOperation_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -3157,6 +3378,14 @@ public String toString() { sb.append(this.tope); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -3218,6 +3447,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, executeFateOperatio org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -3243,6 +3481,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, executeFateOperati struct.tope.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -3267,19 +3510,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, executeFateOperatio if (struct.isSetTope()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetTnase()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSec()) { struct.sec.write(oprot); } if (struct.isSetTope()) { struct.tope.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, executeFateOperation_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(); struct.sec.read(iprot); @@ -3290,6 +3539,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, executeFateOperation struct.tope.read(iprot); struct.setTopeIsSet(true); } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -3880,6 +4134,7 @@ public static class waitForFateOperation_result implements org.apache.thrift.TBa private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final org.apache.thrift.protocol.TField SEC_FIELD_DESC = new org.apache.thrift.protocol.TField("sec", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField TOPE_FIELD_DESC = new org.apache.thrift.protocol.TField("tope", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField TNASE_FIELD_DESC = new org.apache.thrift.protocol.TField("tnase", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -3890,12 +4145,14 @@ public static class waitForFateOperation_result implements org.apache.thrift.TBa public String success; // required public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec; // required public org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope; // required + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), SEC((short)1, "sec"), - TOPE((short)2, "tope"); + TOPE((short)2, "tope"), + TNASE((short)3, "tnase"); private static final Map byName = new HashMap(); @@ -3916,6 +4173,8 @@ public static _Fields findByThriftId(int fieldId) { return SEC; case 2: // TOPE return TOPE; + case 3: // TNASE + return TNASE; default: return null; } @@ -3965,6 +4224,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.TOPE, new org.apache.thrift.meta_data.FieldMetaData("tope", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(waitForFateOperation_result.class, metaDataMap); } @@ -3975,12 +4236,14 @@ public waitForFateOperation_result() { public waitForFateOperation_result( String success, org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, - org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope) + org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.success = success; this.sec = sec; this.tope = tope; + this.tnase = tnase; } /** @@ -3996,6 +4259,9 @@ public waitForFateOperation_result(waitForFateOperation_result other) { if (other.isSetTope()) { this.tope = new org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException(other.tope); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public waitForFateOperation_result deepCopy() { @@ -4007,6 +4273,7 @@ public void clear() { this.success = null; this.sec = null; this.tope = null; + this.tnase = null; } public String getSuccess() { @@ -4081,6 +4348,30 @@ public void setTopeIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public waitForFateOperation_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -4107,6 +4398,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -4121,6 +4420,9 @@ public Object getFieldValue(_Fields field) { case TOPE: return getTope(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -4138,6 +4440,8 @@ public boolean isSet(_Fields field) { return isSetSec(); case TOPE: return isSetTope(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -4182,6 +4486,15 @@ public boolean equals(waitForFateOperation_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -4204,6 +4517,11 @@ public int hashCode() { if (present_tope) list.add(tope); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -4245,6 +4563,16 @@ public int compareTo(waitForFateOperation_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -4288,6 +4616,14 @@ public String toString() { sb.append(this.tope); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -4357,6 +4693,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, waitForFateOperatio org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -4387,6 +4732,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, waitForFateOperati struct.tope.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -4414,7 +4764,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, waitForFateOperatio if (struct.isSetTope()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetTnase()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { oprot.writeString(struct.success); } @@ -4424,12 +4777,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, waitForFateOperatio if (struct.isSetTope()) { struct.tope.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, waitForFateOperation_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); @@ -4444,6 +4800,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, waitForFateOperation struct.tope.read(iprot); struct.setTopeIsSet(true); } + if (incoming.get(3)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -5032,6 +5393,7 @@ public static class finishFateOperation_result implements org.apache.thrift.TBas private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("finishFateOperation_result"); private static final org.apache.thrift.protocol.TField SEC_FIELD_DESC = new org.apache.thrift.protocol.TField("sec", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField TNASE_FIELD_DESC = new org.apache.thrift.protocol.TField("tnase", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -5040,10 +5402,12 @@ public static class finishFateOperation_result implements org.apache.thrift.TBas } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec; // required + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SEC((short)1, "sec"); + SEC((short)1, "sec"), + TNASE((short)2, "tnase"); private static final Map byName = new HashMap(); @@ -5060,6 +5424,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SEC return SEC; + case 2: // TNASE + return TNASE; default: return null; } @@ -5105,6 +5471,8 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SEC, new org.apache.thrift.meta_data.FieldMetaData("sec", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(finishFateOperation_result.class, metaDataMap); } @@ -5113,10 +5481,12 @@ public finishFateOperation_result() { } public finishFateOperation_result( - org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) + org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.sec = sec; + this.tnase = tnase; } /** @@ -5126,6 +5496,9 @@ public finishFateOperation_result(finishFateOperation_result other) { if (other.isSetSec()) { this.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(other.sec); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public finishFateOperation_result deepCopy() { @@ -5135,6 +5508,7 @@ public finishFateOperation_result deepCopy() { @Override public void clear() { this.sec = null; + this.tnase = null; } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException getSec() { @@ -5161,6 +5535,30 @@ public void setSecIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public finishFateOperation_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SEC: @@ -5171,6 +5569,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -5179,6 +5585,9 @@ public Object getFieldValue(_Fields field) { case SEC: return getSec(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -5192,6 +5601,8 @@ public boolean isSet(_Fields field) { switch (field) { case SEC: return isSetSec(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -5218,6 +5629,15 @@ public boolean equals(finishFateOperation_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -5230,6 +5650,11 @@ public int hashCode() { if (present_sec) list.add(sec); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -5251,6 +5676,16 @@ public int compareTo(finishFateOperation_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -5278,6 +5713,14 @@ public String toString() { sb.append(this.sec); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -5330,6 +5773,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, finishFateOperation org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -5350,6 +5802,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, finishFateOperatio struct.sec.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -5371,21 +5828,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, finishFateOperation if (struct.isSetSec()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetTnase()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetSec()) { struct.sec.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, finishFateOperation_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(); struct.sec.read(iprot); struct.setSecIsSet(true); } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } diff --git a/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterClientService.java b/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterClientService.java index 99bebe0166e..a9dfe2d8ead 100644 --- a/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterClientService.java +++ b/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterClientService.java @@ -55,41 +55,41 @@ public class MasterClientService { public interface Iface extends FateService.Iface { - public long initiateFlush(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException; + public long initiateFlush(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public void waitForFlush(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, ByteBuffer startRow, ByteBuffer endRow, long flushID, long maxLoops) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException; + public void waitForFlush(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, ByteBuffer startRow, ByteBuffer endRow, long flushID, long maxLoops) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public void setTableProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, String property, String value) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException; + public void setTableProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, String property, String value) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public void removeTableProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, String property) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException; + public void removeTableProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, String property) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public void setNamespaceProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String ns, String property, String value) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException; + public void setNamespaceProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String ns, String property, String value) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public void removeNamespaceProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String ns, String property) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException; + public void removeNamespaceProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String ns, String property) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public void setMasterGoalState(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, MasterGoalState state) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException; + public void setMasterGoalState(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, MasterGoalState state) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public void shutdown(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, boolean stopTabletServers) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException; + public void shutdown(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, boolean stopTabletServers) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public void shutdownTabletServer(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tabletServer, boolean force) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException; + public void shutdownTabletServer(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tabletServer, boolean force) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public void setSystemProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String property, String value) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException; + public void setSystemProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String property, String value) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public void removeSystemProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String property) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException; + public void removeSystemProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String property) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public MasterMonitorInfo getMasterStats(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException; + public MasterMonitorInfo getMasterStats(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public void waitForBalance(org.apache.accumulo.core.trace.thrift.TInfo tinfo) throws org.apache.thrift.TException; + public void waitForBalance(org.apache.accumulo.core.trace.thrift.TInfo tinfo) throws org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; public void reportSplitExtent(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String serverName, TabletSplit split) throws org.apache.thrift.TException; public void reportTabletStatus(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String serverName, TabletLoadState status, org.apache.accumulo.core.data.thrift.TKeyExtent tablet) throws org.apache.thrift.TException; - public List getActiveTservers(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException; + public List getActiveTservers(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public org.apache.accumulo.core.security.thrift.TDelegationToken getDelegationToken(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, org.apache.accumulo.core.security.thrift.TDelegationTokenConfig cfg) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException; + public org.apache.accumulo.core.security.thrift.TDelegationToken getDelegationToken(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, org.apache.accumulo.core.security.thrift.TDelegationTokenConfig cfg) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; - public boolean drainReplicationTable(org.apache.accumulo.core.trace.thrift.TInfo tfino, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, Set logsToWatch) throws org.apache.thrift.TException; + public boolean drainReplicationTable(org.apache.accumulo.core.trace.thrift.TInfo tfino, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, Set logsToWatch) throws org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException; } @@ -153,7 +153,7 @@ public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.prot super(iprot, oprot); } - public long initiateFlush(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException + public long initiateFlush(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_initiateFlush(tinfo, credentials, tableName); return recv_initiateFlush(); @@ -168,7 +168,7 @@ public void send_initiateFlush(org.apache.accumulo.core.trace.thrift.TInfo tinfo sendBase("initiateFlush", args); } - public long recv_initiateFlush() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException + public long recv_initiateFlush() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { initiateFlush_result result = new initiateFlush_result(); receiveBase(result, "initiateFlush"); @@ -181,10 +181,13 @@ public long recv_initiateFlush() throws org.apache.accumulo.core.client.impl.thr if (result.tope != null) { throw result.tope; } + if (result.tnase != null) { + throw result.tnase; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initiateFlush failed: unknown result"); } - public void waitForFlush(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, ByteBuffer startRow, ByteBuffer endRow, long flushID, long maxLoops) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException + public void waitForFlush(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, ByteBuffer startRow, ByteBuffer endRow, long flushID, long maxLoops) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_waitForFlush(tinfo, credentials, tableName, startRow, endRow, flushID, maxLoops); recv_waitForFlush(); @@ -203,7 +206,7 @@ public void send_waitForFlush(org.apache.accumulo.core.trace.thrift.TInfo tinfo, sendBase("waitForFlush", args); } - public void recv_waitForFlush() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException + public void recv_waitForFlush() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { waitForFlush_result result = new waitForFlush_result(); receiveBase(result, "waitForFlush"); @@ -213,10 +216,13 @@ public void recv_waitForFlush() throws org.apache.accumulo.core.client.impl.thri if (result.tope != null) { throw result.tope; } + if (result.tnase != null) { + throw result.tnase; + } return; } - public void setTableProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, String property, String value) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException + public void setTableProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, String property, String value) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_setTableProperty(tinfo, credentials, tableName, property, value); recv_setTableProperty(); @@ -233,7 +239,7 @@ public void send_setTableProperty(org.apache.accumulo.core.trace.thrift.TInfo ti sendBase("setTableProperty", args); } - public void recv_setTableProperty() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException + public void recv_setTableProperty() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { setTableProperty_result result = new setTableProperty_result(); receiveBase(result, "setTableProperty"); @@ -243,10 +249,13 @@ public void recv_setTableProperty() throws org.apache.accumulo.core.client.impl. if (result.tope != null) { throw result.tope; } + if (result.tnase != null) { + throw result.tnase; + } return; } - public void removeTableProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, String property) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException + public void removeTableProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, String property) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_removeTableProperty(tinfo, credentials, tableName, property); recv_removeTableProperty(); @@ -262,7 +271,7 @@ public void send_removeTableProperty(org.apache.accumulo.core.trace.thrift.TInfo sendBase("removeTableProperty", args); } - public void recv_removeTableProperty() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException + public void recv_removeTableProperty() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { removeTableProperty_result result = new removeTableProperty_result(); receiveBase(result, "removeTableProperty"); @@ -272,10 +281,13 @@ public void recv_removeTableProperty() throws org.apache.accumulo.core.client.im if (result.tope != null) { throw result.tope; } + if (result.tnase != null) { + throw result.tnase; + } return; } - public void setNamespaceProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String ns, String property, String value) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException + public void setNamespaceProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String ns, String property, String value) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_setNamespaceProperty(tinfo, credentials, ns, property, value); recv_setNamespaceProperty(); @@ -292,7 +304,7 @@ public void send_setNamespaceProperty(org.apache.accumulo.core.trace.thrift.TInf sendBase("setNamespaceProperty", args); } - public void recv_setNamespaceProperty() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException + public void recv_setNamespaceProperty() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { setNamespaceProperty_result result = new setNamespaceProperty_result(); receiveBase(result, "setNamespaceProperty"); @@ -302,10 +314,13 @@ public void recv_setNamespaceProperty() throws org.apache.accumulo.core.client.i if (result.tope != null) { throw result.tope; } + if (result.tnase != null) { + throw result.tnase; + } return; } - public void removeNamespaceProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String ns, String property) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException + public void removeNamespaceProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String ns, String property) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_removeNamespaceProperty(tinfo, credentials, ns, property); recv_removeNamespaceProperty(); @@ -321,7 +336,7 @@ public void send_removeNamespaceProperty(org.apache.accumulo.core.trace.thrift.T sendBase("removeNamespaceProperty", args); } - public void recv_removeNamespaceProperty() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException + public void recv_removeNamespaceProperty() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { removeNamespaceProperty_result result = new removeNamespaceProperty_result(); receiveBase(result, "removeNamespaceProperty"); @@ -331,10 +346,13 @@ public void recv_removeNamespaceProperty() throws org.apache.accumulo.core.clien if (result.tope != null) { throw result.tope; } + if (result.tnase != null) { + throw result.tnase; + } return; } - public void setMasterGoalState(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, MasterGoalState state) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public void setMasterGoalState(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, MasterGoalState state) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_setMasterGoalState(tinfo, credentials, state); recv_setMasterGoalState(); @@ -349,17 +367,20 @@ public void send_setMasterGoalState(org.apache.accumulo.core.trace.thrift.TInfo sendBase("setMasterGoalState", args); } - public void recv_setMasterGoalState() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public void recv_setMasterGoalState() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { setMasterGoalState_result result = new setMasterGoalState_result(); receiveBase(result, "setMasterGoalState"); if (result.sec != null) { throw result.sec; } + if (result.tnase != null) { + throw result.tnase; + } return; } - public void shutdown(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, boolean stopTabletServers) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public void shutdown(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, boolean stopTabletServers) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_shutdown(tinfo, credentials, stopTabletServers); recv_shutdown(); @@ -374,17 +395,20 @@ public void send_shutdown(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org sendBase("shutdown", args); } - public void recv_shutdown() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public void recv_shutdown() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { shutdown_result result = new shutdown_result(); receiveBase(result, "shutdown"); if (result.sec != null) { throw result.sec; } + if (result.tnase != null) { + throw result.tnase; + } return; } - public void shutdownTabletServer(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tabletServer, boolean force) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public void shutdownTabletServer(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tabletServer, boolean force) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_shutdownTabletServer(tinfo, credentials, tabletServer, force); recv_shutdownTabletServer(); @@ -400,17 +424,20 @@ public void send_shutdownTabletServer(org.apache.accumulo.core.trace.thrift.TInf sendBase("shutdownTabletServer", args); } - public void recv_shutdownTabletServer() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public void recv_shutdownTabletServer() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { shutdownTabletServer_result result = new shutdownTabletServer_result(); receiveBase(result, "shutdownTabletServer"); if (result.sec != null) { throw result.sec; } + if (result.tnase != null) { + throw result.tnase; + } return; } - public void setSystemProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String property, String value) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public void setSystemProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String property, String value) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_setSystemProperty(tinfo, credentials, property, value); recv_setSystemProperty(); @@ -426,17 +453,20 @@ public void send_setSystemProperty(org.apache.accumulo.core.trace.thrift.TInfo t sendBase("setSystemProperty", args); } - public void recv_setSystemProperty() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public void recv_setSystemProperty() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { setSystemProperty_result result = new setSystemProperty_result(); receiveBase(result, "setSystemProperty"); if (result.sec != null) { throw result.sec; } + if (result.tnase != null) { + throw result.tnase; + } return; } - public void removeSystemProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String property) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public void removeSystemProperty(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, String property) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_removeSystemProperty(tinfo, credentials, property); recv_removeSystemProperty(); @@ -451,17 +481,20 @@ public void send_removeSystemProperty(org.apache.accumulo.core.trace.thrift.TInf sendBase("removeSystemProperty", args); } - public void recv_removeSystemProperty() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public void recv_removeSystemProperty() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { removeSystemProperty_result result = new removeSystemProperty_result(); receiveBase(result, "removeSystemProperty"); if (result.sec != null) { throw result.sec; } + if (result.tnase != null) { + throw result.tnase; + } return; } - public MasterMonitorInfo getMasterStats(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public MasterMonitorInfo getMasterStats(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_getMasterStats(tinfo, credentials); return recv_getMasterStats(); @@ -475,7 +508,7 @@ public void send_getMasterStats(org.apache.accumulo.core.trace.thrift.TInfo tinf sendBase("getMasterStats", args); } - public MasterMonitorInfo recv_getMasterStats() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public MasterMonitorInfo recv_getMasterStats() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { getMasterStats_result result = new getMasterStats_result(); receiveBase(result, "getMasterStats"); @@ -485,10 +518,13 @@ public MasterMonitorInfo recv_getMasterStats() throws org.apache.accumulo.core.c if (result.sec != null) { throw result.sec; } + if (result.tnase != null) { + throw result.tnase; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMasterStats failed: unknown result"); } - public void waitForBalance(org.apache.accumulo.core.trace.thrift.TInfo tinfo) throws org.apache.thrift.TException + public void waitForBalance(org.apache.accumulo.core.trace.thrift.TInfo tinfo) throws org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_waitForBalance(tinfo); recv_waitForBalance(); @@ -501,10 +537,13 @@ public void send_waitForBalance(org.apache.accumulo.core.trace.thrift.TInfo tinf sendBase("waitForBalance", args); } - public void recv_waitForBalance() throws org.apache.thrift.TException + public void recv_waitForBalance() throws org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { waitForBalance_result result = new waitForBalance_result(); receiveBase(result, "waitForBalance"); + if (result.tnase != null) { + throw result.tnase; + } return; } @@ -539,7 +578,7 @@ public void send_reportTabletStatus(org.apache.accumulo.core.trace.thrift.TInfo sendBaseOneway("reportTabletStatus", args); } - public List getActiveTservers(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public List getActiveTservers(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_getActiveTservers(tinfo, credentials); return recv_getActiveTservers(); @@ -553,7 +592,7 @@ public void send_getActiveTservers(org.apache.accumulo.core.trace.thrift.TInfo t sendBase("getActiveTservers", args); } - public List recv_getActiveTservers() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public List recv_getActiveTservers() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { getActiveTservers_result result = new getActiveTservers_result(); receiveBase(result, "getActiveTservers"); @@ -563,10 +602,13 @@ public List recv_getActiveTservers() throws org.apache.accumulo.core.cli if (result.sec != null) { throw result.sec; } + if (result.tnase != null) { + throw result.tnase; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActiveTservers failed: unknown result"); } - public org.apache.accumulo.core.security.thrift.TDelegationToken getDelegationToken(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, org.apache.accumulo.core.security.thrift.TDelegationTokenConfig cfg) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public org.apache.accumulo.core.security.thrift.TDelegationToken getDelegationToken(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials, org.apache.accumulo.core.security.thrift.TDelegationTokenConfig cfg) throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_getDelegationToken(tinfo, credentials, cfg); return recv_getDelegationToken(); @@ -581,7 +623,7 @@ public void send_getDelegationToken(org.apache.accumulo.core.trace.thrift.TInfo sendBase("getDelegationToken", args); } - public org.apache.accumulo.core.security.thrift.TDelegationToken recv_getDelegationToken() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException + public org.apache.accumulo.core.security.thrift.TDelegationToken recv_getDelegationToken() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { getDelegationToken_result result = new getDelegationToken_result(); receiveBase(result, "getDelegationToken"); @@ -591,10 +633,13 @@ public org.apache.accumulo.core.security.thrift.TDelegationToken recv_getDelegat if (result.sec != null) { throw result.sec; } + if (result.tnase != null) { + throw result.tnase; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDelegationToken failed: unknown result"); } - public boolean drainReplicationTable(org.apache.accumulo.core.trace.thrift.TInfo tfino, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, Set logsToWatch) throws org.apache.thrift.TException + public boolean drainReplicationTable(org.apache.accumulo.core.trace.thrift.TInfo tfino, org.apache.accumulo.core.security.thrift.TCredentials credentials, String tableName, Set logsToWatch) throws org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { send_drainReplicationTable(tfino, credentials, tableName, logsToWatch); return recv_drainReplicationTable(); @@ -610,13 +655,16 @@ public void send_drainReplicationTable(org.apache.accumulo.core.trace.thrift.TIn sendBase("drainReplicationTable", args); } - public boolean recv_drainReplicationTable() throws org.apache.thrift.TException + public boolean recv_drainReplicationTable() throws org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { drainReplicationTable_result result = new drainReplicationTable_result(); receiveBase(result, "drainReplicationTable"); if (result.isSetSuccess()) { return result.success; } + if (result.tnase != null) { + throw result.tnase; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "drainReplicationTable failed: unknown result"); } @@ -666,7 +714,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public long getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException { + public long getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -716,7 +764,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException { + public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -760,7 +808,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException { + public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -801,7 +849,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException { + public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -845,7 +893,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException { + public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -886,7 +934,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.thrift.TException { + public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -924,7 +972,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException { + public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -962,7 +1010,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException { + public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1003,7 +1051,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException { + public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1044,7 +1092,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException { + public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1082,7 +1130,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException { + public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1117,7 +1165,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public MasterMonitorInfo getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException { + public MasterMonitorInfo getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1149,7 +1197,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public void getResult() throws org.apache.thrift.TException { + public void getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1267,7 +1315,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public List getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException { + public List getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1305,7 +1353,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public org.apache.accumulo.core.security.thrift.TDelegationToken getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException { + public org.apache.accumulo.core.security.thrift.TDelegationToken getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1346,7 +1394,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public boolean getResult() throws org.apache.thrift.TException { + public boolean getResult() throws org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1412,6 +1460,8 @@ public initiateFlush_result getResult(I iface, initiateFlush_args args) throws o result.sec = sec; } catch (org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope) { result.tope = tope; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -1438,6 +1488,8 @@ public waitForFlush_result getResult(I iface, waitForFlush_args args) throws org result.sec = sec; } catch (org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope) { result.tope = tope; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -1464,6 +1516,8 @@ public setTableProperty_result getResult(I iface, setTableProperty_args args) th result.sec = sec; } catch (org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope) { result.tope = tope; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -1490,6 +1544,8 @@ public removeTableProperty_result getResult(I iface, removeTableProperty_args ar result.sec = sec; } catch (org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope) { result.tope = tope; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -1516,6 +1572,8 @@ public setNamespaceProperty_result getResult(I iface, setNamespaceProperty_args result.sec = sec; } catch (org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope) { result.tope = tope; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -1542,6 +1600,8 @@ public removeNamespaceProperty_result getResult(I iface, removeNamespaceProperty result.sec = sec; } catch (org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope) { result.tope = tope; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -1566,6 +1626,8 @@ public setMasterGoalState_result getResult(I iface, setMasterGoalState_args args iface.setMasterGoalState(args.tinfo, args.credentials, args.state); } catch (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) { result.sec = sec; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -1590,6 +1652,8 @@ public shutdown_result getResult(I iface, shutdown_args args) throws org.apache. iface.shutdown(args.tinfo, args.credentials, args.stopTabletServers); } catch (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) { result.sec = sec; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -1614,6 +1678,8 @@ public shutdownTabletServer_result getResult(I iface, shutdownTabletServer_args iface.shutdownTabletServer(args.tinfo, args.credentials, args.tabletServer, args.force); } catch (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) { result.sec = sec; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -1638,6 +1704,8 @@ public setSystemProperty_result getResult(I iface, setSystemProperty_args args) iface.setSystemProperty(args.tinfo, args.credentials, args.property, args.value); } catch (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) { result.sec = sec; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -1662,6 +1730,8 @@ public removeSystemProperty_result getResult(I iface, removeSystemProperty_args iface.removeSystemProperty(args.tinfo, args.credentials, args.property); } catch (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) { result.sec = sec; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -1686,6 +1756,8 @@ public getMasterStats_result getResult(I iface, getMasterStats_args args) throws result.success = iface.getMasterStats(args.tinfo, args.credentials); } catch (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) { result.sec = sec; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -1706,7 +1778,11 @@ protected boolean isOneway() { public waitForBalance_result getResult(I iface, waitForBalance_args args) throws org.apache.thrift.TException { waitForBalance_result result = new waitForBalance_result(); - iface.waitForBalance(args.tinfo); + try { + iface.waitForBalance(args.tinfo); + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; + } return result; } } @@ -1768,6 +1844,8 @@ public getActiveTservers_result getResult(I iface, getActiveTservers_args args) result.success = iface.getActiveTservers(args.tinfo, args.credentials); } catch (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) { result.sec = sec; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -1792,6 +1870,8 @@ public getDelegationToken_result getResult(I iface, getDelegationToken_args args result.success = iface.getDelegationToken(args.tinfo, args.credentials, args.cfg); } catch (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) { result.sec = sec; + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; } return result; } @@ -1812,8 +1892,12 @@ protected boolean isOneway() { public drainReplicationTable_result getResult(I iface, drainReplicationTable_args args) throws org.apache.thrift.TException { drainReplicationTable_result result = new drainReplicationTable_result(); - result.success = iface.drainReplicationTable(args.tfino, args.credentials, args.tableName, args.logsToWatch); - result.setSuccessIsSet(true); + try { + result.success = iface.drainReplicationTable(args.tfino, args.credentials, args.tableName, args.logsToWatch); + result.setSuccessIsSet(true); + } catch (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + result.tnase = tnase; + } return result; } } @@ -1889,6 +1973,11 @@ else if (e instanceof org.apache.accumulo.core.client.impl.thrift.Th result.tope = (org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException) e; result.setTopeIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -1950,6 +2039,11 @@ else if (e instanceof org.apache.accumulo.core.client.impl.thrift.Th result.tope = (org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException) e; result.setTopeIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -2011,6 +2105,11 @@ else if (e instanceof org.apache.accumulo.core.client.impl.thrift.Th result.tope = (org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException) e; result.setTopeIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -2072,6 +2171,11 @@ else if (e instanceof org.apache.accumulo.core.client.impl.thrift.Th result.tope = (org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException) e; result.setTopeIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -2133,6 +2237,11 @@ else if (e instanceof org.apache.accumulo.core.client.impl.thrift.Th result.tope = (org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException) e; result.setTopeIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -2194,6 +2303,11 @@ else if (e instanceof org.apache.accumulo.core.client.impl.thrift.Th result.tope = (org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException) e; result.setTopeIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -2250,6 +2364,11 @@ public void onError(Exception e) { result.sec = (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException) e; result.setSecIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -2306,6 +2425,11 @@ public void onError(Exception e) { result.sec = (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException) e; result.setSecIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -2362,6 +2486,11 @@ public void onError(Exception e) { result.sec = (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException) e; result.setSecIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -2418,6 +2547,11 @@ public void onError(Exception e) { result.sec = (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException) e; result.setSecIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -2474,6 +2608,11 @@ public void onError(Exception e) { result.sec = (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException) e; result.setSecIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -2531,6 +2670,11 @@ public void onError(Exception e) { result.sec = (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException) e; result.setSecIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -2583,6 +2727,12 @@ public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; waitForBalance_result result = new waitForBalance_result(); + if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; + } + else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); @@ -2694,6 +2844,11 @@ public void onError(Exception e) { result.sec = (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException) e; result.setSecIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -2751,6 +2906,11 @@ public void onError(Exception e) { result.sec = (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException) e; result.setSecIsSet(true); msg = result; + } + else if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; } else { @@ -2805,6 +2965,12 @@ public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; drainReplicationTable_result result = new drainReplicationTable_result(); + if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) { + result.tnase = (org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException) e; + result.setTnaseIsSet(true); + msg = result; + } + else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); @@ -3418,6 +3584,7 @@ public static class initiateFlush_result implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -3428,12 +3595,14 @@ public static class initiateFlush_result implements org.apache.thrift.TBase byName = new HashMap(); @@ -3454,6 +3623,8 @@ public static _Fields findByThriftId(int fieldId) { return SEC; case 2: // TOPE return TOPE; + case 3: // TNASE + return TNASE; default: return null; } @@ -3505,6 +3676,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.TOPE, new org.apache.thrift.meta_data.FieldMetaData("tope", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initiateFlush_result.class, metaDataMap); } @@ -3515,13 +3688,15 @@ public initiateFlush_result() { public initiateFlush_result( long success, org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, - org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope) + org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.success = success; setSuccessIsSet(true); this.sec = sec; this.tope = tope; + this.tnase = tnase; } /** @@ -3536,6 +3711,9 @@ public initiateFlush_result(initiateFlush_result other) { if (other.isSetTope()) { this.tope = new org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException(other.tope); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public initiateFlush_result deepCopy() { @@ -3548,6 +3726,7 @@ public void clear() { this.success = 0; this.sec = null; this.tope = null; + this.tnase = null; } public long getSuccess() { @@ -3621,6 +3800,30 @@ public void setTopeIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public initiateFlush_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -3647,6 +3850,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -3661,6 +3872,9 @@ public Object getFieldValue(_Fields field) { case TOPE: return getTope(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -3678,6 +3892,8 @@ public boolean isSet(_Fields field) { return isSetSec(); case TOPE: return isSetTope(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -3722,6 +3938,15 @@ public boolean equals(initiateFlush_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -3744,6 +3969,11 @@ public int hashCode() { if (present_tope) list.add(tope); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -3785,6 +4015,16 @@ public int compareTo(initiateFlush_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -3824,6 +4064,14 @@ public String toString() { sb.append(this.tope); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -3895,6 +4143,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, initiateFlush_resul org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -3925,6 +4182,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, initiateFlush_resu struct.tope.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -3952,7 +4214,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, initiateFlush_resul if (struct.isSetTope()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetTnase()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { oprot.writeI64(struct.success); } @@ -3962,12 +4227,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, initiateFlush_resul if (struct.isSetTope()) { struct.tope.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, initiateFlush_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); @@ -3982,6 +4250,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, initiateFlush_result struct.tope.read(iprot); struct.setTopeIsSet(true); } + if (incoming.get(3)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -5005,6 +5278,7 @@ public static class waitForFlush_result implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -5014,11 +5288,13 @@ public static class waitForFlush_result implements org.apache.thrift.TBase byName = new HashMap(); @@ -5037,6 +5313,8 @@ public static _Fields findByThriftId(int fieldId) { return SEC; case 2: // TOPE return TOPE; + case 3: // TNASE + return TNASE; default: return null; } @@ -5084,6 +5362,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.TOPE, new org.apache.thrift.meta_data.FieldMetaData("tope", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(waitForFlush_result.class, metaDataMap); } @@ -5093,11 +5373,13 @@ public waitForFlush_result() { public waitForFlush_result( org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, - org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope) + org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.sec = sec; this.tope = tope; + this.tnase = tnase; } /** @@ -5110,6 +5392,9 @@ public waitForFlush_result(waitForFlush_result other) { if (other.isSetTope()) { this.tope = new org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException(other.tope); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public waitForFlush_result deepCopy() { @@ -5120,6 +5405,7 @@ public waitForFlush_result deepCopy() { public void clear() { this.sec = null; this.tope = null; + this.tnase = null; } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException getSec() { @@ -5170,6 +5456,30 @@ public void setTopeIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public waitForFlush_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SEC: @@ -5188,6 +5498,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -5199,6 +5517,9 @@ public Object getFieldValue(_Fields field) { case TOPE: return getTope(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -5214,6 +5535,8 @@ public boolean isSet(_Fields field) { return isSetSec(); case TOPE: return isSetTope(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -5249,6 +5572,15 @@ public boolean equals(waitForFlush_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -5266,6 +5598,11 @@ public int hashCode() { if (present_tope) list.add(tope); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -5297,6 +5634,16 @@ public int compareTo(waitForFlush_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -5332,6 +5679,14 @@ public String toString() { sb.append(this.tope); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -5393,6 +5748,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, waitForFlush_result org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -5418,6 +5782,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, waitForFlush_resul struct.tope.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -5442,19 +5811,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, waitForFlush_result if (struct.isSetTope()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetTnase()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSec()) { struct.sec.write(oprot); } if (struct.isSetTope()) { struct.tope.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, waitForFlush_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(); struct.sec.read(iprot); @@ -5465,6 +5840,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, waitForFlush_result struct.tope.read(iprot); struct.setTopeIsSet(true); } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -6266,6 +6646,7 @@ public static class setTableProperty_result implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -6275,11 +6656,13 @@ public static class setTableProperty_result implements org.apache.thrift.TBase byName = new HashMap(); @@ -6298,6 +6681,8 @@ public static _Fields findByThriftId(int fieldId) { return SEC; case 2: // TOPE return TOPE; + case 3: // TNASE + return TNASE; default: return null; } @@ -6345,6 +6730,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.TOPE, new org.apache.thrift.meta_data.FieldMetaData("tope", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setTableProperty_result.class, metaDataMap); } @@ -6354,11 +6741,13 @@ public setTableProperty_result() { public setTableProperty_result( org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, - org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope) + org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.sec = sec; this.tope = tope; + this.tnase = tnase; } /** @@ -6371,6 +6760,9 @@ public setTableProperty_result(setTableProperty_result other) { if (other.isSetTope()) { this.tope = new org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException(other.tope); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public setTableProperty_result deepCopy() { @@ -6381,6 +6773,7 @@ public setTableProperty_result deepCopy() { public void clear() { this.sec = null; this.tope = null; + this.tnase = null; } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException getSec() { @@ -6431,6 +6824,30 @@ public void setTopeIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public setTableProperty_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SEC: @@ -6449,6 +6866,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -6460,6 +6885,9 @@ public Object getFieldValue(_Fields field) { case TOPE: return getTope(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -6475,6 +6903,8 @@ public boolean isSet(_Fields field) { return isSetSec(); case TOPE: return isSetTope(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -6510,6 +6940,15 @@ public boolean equals(setTableProperty_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -6527,6 +6966,11 @@ public int hashCode() { if (present_tope) list.add(tope); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -6558,6 +7002,16 @@ public int compareTo(setTableProperty_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -6593,6 +7047,14 @@ public String toString() { sb.append(this.tope); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -6654,6 +7116,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, setTableProperty_re org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -6679,6 +7150,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, setTableProperty_r struct.tope.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -6703,19 +7179,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, setTableProperty_re if (struct.isSetTope()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetTnase()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSec()) { struct.sec.write(oprot); } if (struct.isSetTope()) { struct.tope.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setTableProperty_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(); struct.sec.read(iprot); @@ -6726,6 +7208,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, setTableProperty_res struct.tope.read(iprot); struct.setTopeIsSet(true); } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -7422,6 +7909,7 @@ public static class removeTableProperty_result implements org.apache.thrift.TBas private static final org.apache.thrift.protocol.TField SEC_FIELD_DESC = new org.apache.thrift.protocol.TField("sec", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField TOPE_FIELD_DESC = new org.apache.thrift.protocol.TField("tope", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField TNASE_FIELD_DESC = new org.apache.thrift.protocol.TField("tnase", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -7431,11 +7919,13 @@ public static class removeTableProperty_result implements org.apache.thrift.TBas public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec; // required public org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope; // required + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SEC((short)1, "sec"), - TOPE((short)2, "tope"); + TOPE((short)2, "tope"), + TNASE((short)3, "tnase"); private static final Map byName = new HashMap(); @@ -7454,6 +7944,8 @@ public static _Fields findByThriftId(int fieldId) { return SEC; case 2: // TOPE return TOPE; + case 3: // TNASE + return TNASE; default: return null; } @@ -7501,6 +7993,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.TOPE, new org.apache.thrift.meta_data.FieldMetaData("tope", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeTableProperty_result.class, metaDataMap); } @@ -7510,11 +8004,13 @@ public removeTableProperty_result() { public removeTableProperty_result( org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, - org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope) + org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.sec = sec; this.tope = tope; + this.tnase = tnase; } /** @@ -7527,6 +8023,9 @@ public removeTableProperty_result(removeTableProperty_result other) { if (other.isSetTope()) { this.tope = new org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException(other.tope); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public removeTableProperty_result deepCopy() { @@ -7537,6 +8036,7 @@ public removeTableProperty_result deepCopy() { public void clear() { this.sec = null; this.tope = null; + this.tnase = null; } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException getSec() { @@ -7587,6 +8087,30 @@ public void setTopeIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public removeTableProperty_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SEC: @@ -7605,6 +8129,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -7616,6 +8148,9 @@ public Object getFieldValue(_Fields field) { case TOPE: return getTope(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -7631,6 +8166,8 @@ public boolean isSet(_Fields field) { return isSetSec(); case TOPE: return isSetTope(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -7666,6 +8203,15 @@ public boolean equals(removeTableProperty_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -7683,6 +8229,11 @@ public int hashCode() { if (present_tope) list.add(tope); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -7714,6 +8265,16 @@ public int compareTo(removeTableProperty_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -7749,6 +8310,14 @@ public String toString() { sb.append(this.tope); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -7810,6 +8379,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, removeTableProperty org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -7835,6 +8413,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, removeTablePropert struct.tope.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -7859,19 +8442,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, removeTableProperty if (struct.isSetTope()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetTnase()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSec()) { struct.sec.write(oprot); } if (struct.isSetTope()) { struct.tope.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeTableProperty_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(); struct.sec.read(iprot); @@ -7882,6 +8471,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, removeTableProperty_ struct.tope.read(iprot); struct.setTopeIsSet(true); } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -8683,6 +9277,7 @@ public static class setNamespaceProperty_result implements org.apache.thrift.TBa private static final org.apache.thrift.protocol.TField SEC_FIELD_DESC = new org.apache.thrift.protocol.TField("sec", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField TOPE_FIELD_DESC = new org.apache.thrift.protocol.TField("tope", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField TNASE_FIELD_DESC = new org.apache.thrift.protocol.TField("tnase", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -8692,11 +9287,13 @@ public static class setNamespaceProperty_result implements org.apache.thrift.TBa public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec; // required public org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope; // required + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SEC((short)1, "sec"), - TOPE((short)2, "tope"); + TOPE((short)2, "tope"), + TNASE((short)3, "tnase"); private static final Map byName = new HashMap(); @@ -8715,6 +9312,8 @@ public static _Fields findByThriftId(int fieldId) { return SEC; case 2: // TOPE return TOPE; + case 3: // TNASE + return TNASE; default: return null; } @@ -8762,6 +9361,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.TOPE, new org.apache.thrift.meta_data.FieldMetaData("tope", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setNamespaceProperty_result.class, metaDataMap); } @@ -8771,11 +9372,13 @@ public setNamespaceProperty_result() { public setNamespaceProperty_result( org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, - org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope) + org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.sec = sec; this.tope = tope; + this.tnase = tnase; } /** @@ -8788,6 +9391,9 @@ public setNamespaceProperty_result(setNamespaceProperty_result other) { if (other.isSetTope()) { this.tope = new org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException(other.tope); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public setNamespaceProperty_result deepCopy() { @@ -8798,6 +9404,7 @@ public setNamespaceProperty_result deepCopy() { public void clear() { this.sec = null; this.tope = null; + this.tnase = null; } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException getSec() { @@ -8848,6 +9455,30 @@ public void setTopeIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public setNamespaceProperty_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SEC: @@ -8866,6 +9497,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -8877,6 +9516,9 @@ public Object getFieldValue(_Fields field) { case TOPE: return getTope(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -8892,6 +9534,8 @@ public boolean isSet(_Fields field) { return isSetSec(); case TOPE: return isSetTope(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -8927,6 +9571,15 @@ public boolean equals(setNamespaceProperty_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -8944,6 +9597,11 @@ public int hashCode() { if (present_tope) list.add(tope); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -8975,6 +9633,16 @@ public int compareTo(setNamespaceProperty_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -9010,6 +9678,14 @@ public String toString() { sb.append(this.tope); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -9071,6 +9747,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, setNamespacePropert org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -9096,6 +9781,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, setNamespaceProper struct.tope.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -9120,19 +9810,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, setNamespacePropert if (struct.isSetTope()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetTnase()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSec()) { struct.sec.write(oprot); } if (struct.isSetTope()) { struct.tope.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setNamespaceProperty_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(); struct.sec.read(iprot); @@ -9143,6 +9839,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, setNamespaceProperty struct.tope.read(iprot); struct.setTopeIsSet(true); } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -9839,6 +10540,7 @@ public static class removeNamespaceProperty_result implements org.apache.thrift. private static final org.apache.thrift.protocol.TField SEC_FIELD_DESC = new org.apache.thrift.protocol.TField("sec", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField TOPE_FIELD_DESC = new org.apache.thrift.protocol.TField("tope", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField TNASE_FIELD_DESC = new org.apache.thrift.protocol.TField("tnase", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -9848,11 +10550,13 @@ public static class removeNamespaceProperty_result implements org.apache.thrift. public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec; // required public org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope; // required + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SEC((short)1, "sec"), - TOPE((short)2, "tope"); + TOPE((short)2, "tope"), + TNASE((short)3, "tnase"); private static final Map byName = new HashMap(); @@ -9871,6 +10575,8 @@ public static _Fields findByThriftId(int fieldId) { return SEC; case 2: // TOPE return TOPE; + case 3: // TNASE + return TNASE; default: return null; } @@ -9918,6 +10624,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.TOPE, new org.apache.thrift.meta_data.FieldMetaData("tope", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeNamespaceProperty_result.class, metaDataMap); } @@ -9927,11 +10635,13 @@ public removeNamespaceProperty_result() { public removeNamespaceProperty_result( org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, - org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope) + org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException tope, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.sec = sec; this.tope = tope; + this.tnase = tnase; } /** @@ -9944,6 +10654,9 @@ public removeNamespaceProperty_result(removeNamespaceProperty_result other) { if (other.isSetTope()) { this.tope = new org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException(other.tope); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public removeNamespaceProperty_result deepCopy() { @@ -9954,6 +10667,7 @@ public removeNamespaceProperty_result deepCopy() { public void clear() { this.sec = null; this.tope = null; + this.tnase = null; } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException getSec() { @@ -10004,6 +10718,30 @@ public void setTopeIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public removeNamespaceProperty_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SEC: @@ -10022,6 +10760,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -10033,6 +10779,9 @@ public Object getFieldValue(_Fields field) { case TOPE: return getTope(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -10048,6 +10797,8 @@ public boolean isSet(_Fields field) { return isSetSec(); case TOPE: return isSetTope(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -10083,6 +10834,15 @@ public boolean equals(removeNamespaceProperty_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -10100,6 +10860,11 @@ public int hashCode() { if (present_tope) list.add(tope); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -10131,6 +10896,16 @@ public int compareTo(removeNamespaceProperty_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -10166,6 +10941,14 @@ public String toString() { sb.append(this.tope); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -10227,6 +11010,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, removeNamespaceProp org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -10252,6 +11044,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, removeNamespacePro struct.tope.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -10276,19 +11073,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, removeNamespaceProp if (struct.isSetTope()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetTnase()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSec()) { struct.sec.write(oprot); } if (struct.isSetTope()) { struct.tope.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeNamespaceProperty_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(); struct.sec.read(iprot); @@ -10299,6 +11102,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, removeNamespacePrope struct.tope.read(iprot); struct.setTopeIsSet(true); } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -10905,6 +11713,7 @@ public static class setMasterGoalState_result implements org.apache.thrift.TBase private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setMasterGoalState_result"); private static final org.apache.thrift.protocol.TField SEC_FIELD_DESC = new org.apache.thrift.protocol.TField("sec", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField TNASE_FIELD_DESC = new org.apache.thrift.protocol.TField("tnase", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -10913,10 +11722,12 @@ public static class setMasterGoalState_result implements org.apache.thrift.TBase } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec; // required + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SEC((short)1, "sec"); + SEC((short)1, "sec"), + TNASE((short)2, "tnase"); private static final Map byName = new HashMap(); @@ -10933,6 +11744,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SEC return SEC; + case 2: // TNASE + return TNASE; default: return null; } @@ -10978,6 +11791,8 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SEC, new org.apache.thrift.meta_data.FieldMetaData("sec", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setMasterGoalState_result.class, metaDataMap); } @@ -10986,10 +11801,12 @@ public setMasterGoalState_result() { } public setMasterGoalState_result( - org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) + org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.sec = sec; + this.tnase = tnase; } /** @@ -10999,6 +11816,9 @@ public setMasterGoalState_result(setMasterGoalState_result other) { if (other.isSetSec()) { this.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(other.sec); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public setMasterGoalState_result deepCopy() { @@ -11008,6 +11828,7 @@ public setMasterGoalState_result deepCopy() { @Override public void clear() { this.sec = null; + this.tnase = null; } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException getSec() { @@ -11034,6 +11855,30 @@ public void setSecIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public setMasterGoalState_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SEC: @@ -11044,6 +11889,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -11052,6 +11905,9 @@ public Object getFieldValue(_Fields field) { case SEC: return getSec(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -11065,6 +11921,8 @@ public boolean isSet(_Fields field) { switch (field) { case SEC: return isSetSec(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -11091,6 +11949,15 @@ public boolean equals(setMasterGoalState_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -11103,6 +11970,11 @@ public int hashCode() { if (present_sec) list.add(sec); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -11124,6 +11996,16 @@ public int compareTo(setMasterGoalState_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -11151,6 +12033,14 @@ public String toString() { sb.append(this.sec); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -11203,6 +12093,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, setMasterGoalState_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -11223,6 +12122,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, setMasterGoalState struct.sec.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -11244,21 +12148,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, setMasterGoalState_ if (struct.isSetSec()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetTnase()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetSec()) { struct.sec.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setMasterGoalState_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(); struct.sec.read(iprot); struct.setSecIsSet(true); } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -11847,6 +12762,7 @@ public static class shutdown_result implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -11855,10 +12771,12 @@ public static class shutdown_result implements org.apache.thrift.TBase byName = new HashMap(); @@ -11875,6 +12793,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SEC return SEC; + case 2: // TNASE + return TNASE; default: return null; } @@ -11920,6 +12840,8 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SEC, new org.apache.thrift.meta_data.FieldMetaData("sec", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shutdown_result.class, metaDataMap); } @@ -11928,10 +12850,12 @@ public shutdown_result() { } public shutdown_result( - org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) + org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.sec = sec; + this.tnase = tnase; } /** @@ -11941,6 +12865,9 @@ public shutdown_result(shutdown_result other) { if (other.isSetSec()) { this.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(other.sec); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public shutdown_result deepCopy() { @@ -11950,6 +12877,7 @@ public shutdown_result deepCopy() { @Override public void clear() { this.sec = null; + this.tnase = null; } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException getSec() { @@ -11976,6 +12904,30 @@ public void setSecIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public shutdown_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SEC: @@ -11986,6 +12938,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -11994,6 +12954,9 @@ public Object getFieldValue(_Fields field) { case SEC: return getSec(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -12007,6 +12970,8 @@ public boolean isSet(_Fields field) { switch (field) { case SEC: return isSetSec(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -12033,6 +12998,15 @@ public boolean equals(shutdown_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -12045,6 +13019,11 @@ public int hashCode() { if (present_sec) list.add(sec); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -12066,6 +13045,16 @@ public int compareTo(shutdown_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -12093,6 +13082,14 @@ public String toString() { sb.append(this.sec); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -12145,6 +13142,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, shutdown_result str org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -12165,6 +13171,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, shutdown_result st struct.sec.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -12186,21 +13197,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, shutdown_result str if (struct.isSetSec()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetTnase()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetSec()) { struct.sec.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, shutdown_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(); struct.sec.read(iprot); struct.setSecIsSet(true); } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -12894,6 +13916,7 @@ public static class shutdownTabletServer_result implements org.apache.thrift.TBa private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shutdownTabletServer_result"); private static final org.apache.thrift.protocol.TField SEC_FIELD_DESC = new org.apache.thrift.protocol.TField("sec", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField TNASE_FIELD_DESC = new org.apache.thrift.protocol.TField("tnase", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -12902,10 +13925,12 @@ public static class shutdownTabletServer_result implements org.apache.thrift.TBa } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec; // required + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SEC((short)1, "sec"); + SEC((short)1, "sec"), + TNASE((short)2, "tnase"); private static final Map byName = new HashMap(); @@ -12922,6 +13947,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SEC return SEC; + case 2: // TNASE + return TNASE; default: return null; } @@ -12967,6 +13994,8 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SEC, new org.apache.thrift.meta_data.FieldMetaData("sec", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shutdownTabletServer_result.class, metaDataMap); } @@ -12975,10 +14004,12 @@ public shutdownTabletServer_result() { } public shutdownTabletServer_result( - org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) + org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.sec = sec; + this.tnase = tnase; } /** @@ -12988,6 +14019,9 @@ public shutdownTabletServer_result(shutdownTabletServer_result other) { if (other.isSetSec()) { this.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(other.sec); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public shutdownTabletServer_result deepCopy() { @@ -12997,6 +14031,7 @@ public shutdownTabletServer_result deepCopy() { @Override public void clear() { this.sec = null; + this.tnase = null; } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException getSec() { @@ -13023,6 +14058,30 @@ public void setSecIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public shutdownTabletServer_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SEC: @@ -13033,6 +14092,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -13041,6 +14108,9 @@ public Object getFieldValue(_Fields field) { case SEC: return getSec(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -13054,6 +14124,8 @@ public boolean isSet(_Fields field) { switch (field) { case SEC: return isSetSec(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -13080,6 +14152,15 @@ public boolean equals(shutdownTabletServer_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -13092,6 +14173,11 @@ public int hashCode() { if (present_sec) list.add(sec); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -13113,6 +14199,16 @@ public int compareTo(shutdownTabletServer_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -13140,6 +14236,14 @@ public String toString() { sb.append(this.sec); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -13192,6 +14296,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, shutdownTabletServe org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -13212,6 +14325,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, shutdownTabletServ struct.sec.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -13233,21 +14351,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, shutdownTabletServe if (struct.isSetSec()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetTnase()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetSec()) { struct.sec.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, shutdownTabletServer_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(); struct.sec.read(iprot); struct.setSecIsSet(true); } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -13943,6 +15072,7 @@ public static class setSystemProperty_result implements org.apache.thrift.TBase< private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setSystemProperty_result"); private static final org.apache.thrift.protocol.TField SEC_FIELD_DESC = new org.apache.thrift.protocol.TField("sec", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField TNASE_FIELD_DESC = new org.apache.thrift.protocol.TField("tnase", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -13951,10 +15081,12 @@ public static class setSystemProperty_result implements org.apache.thrift.TBase< } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec; // required + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SEC((short)1, "sec"); + SEC((short)1, "sec"), + TNASE((short)2, "tnase"); private static final Map byName = new HashMap(); @@ -13971,6 +15103,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SEC return SEC; + case 2: // TNASE + return TNASE; default: return null; } @@ -14016,6 +15150,8 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SEC, new org.apache.thrift.meta_data.FieldMetaData("sec", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setSystemProperty_result.class, metaDataMap); } @@ -14024,10 +15160,12 @@ public setSystemProperty_result() { } public setSystemProperty_result( - org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) + org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.sec = sec; + this.tnase = tnase; } /** @@ -14037,6 +15175,9 @@ public setSystemProperty_result(setSystemProperty_result other) { if (other.isSetSec()) { this.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(other.sec); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public setSystemProperty_result deepCopy() { @@ -14046,6 +15187,7 @@ public setSystemProperty_result deepCopy() { @Override public void clear() { this.sec = null; + this.tnase = null; } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException getSec() { @@ -14072,6 +15214,30 @@ public void setSecIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public setSystemProperty_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SEC: @@ -14082,6 +15248,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -14090,6 +15264,9 @@ public Object getFieldValue(_Fields field) { case SEC: return getSec(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -14103,6 +15280,8 @@ public boolean isSet(_Fields field) { switch (field) { case SEC: return isSetSec(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -14129,6 +15308,15 @@ public boolean equals(setSystemProperty_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -14141,6 +15329,11 @@ public int hashCode() { if (present_sec) list.add(sec); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -14162,6 +15355,16 @@ public int compareTo(setSystemProperty_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -14189,6 +15392,14 @@ public String toString() { sb.append(this.sec); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -14241,6 +15452,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, setSystemProperty_r org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -14261,6 +15481,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, setSystemProperty_ struct.sec.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -14282,21 +15507,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, setSystemProperty_r if (struct.isSetSec()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetTnase()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetSec()) { struct.sec.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setSystemProperty_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(); struct.sec.read(iprot); struct.setSecIsSet(true); } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -14887,6 +16123,7 @@ public static class removeSystemProperty_result implements org.apache.thrift.TBa private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeSystemProperty_result"); private static final org.apache.thrift.protocol.TField SEC_FIELD_DESC = new org.apache.thrift.protocol.TField("sec", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField TNASE_FIELD_DESC = new org.apache.thrift.protocol.TField("tnase", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -14895,10 +16132,12 @@ public static class removeSystemProperty_result implements org.apache.thrift.TBa } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec; // required + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SEC((short)1, "sec"); + SEC((short)1, "sec"), + TNASE((short)2, "tnase"); private static final Map byName = new HashMap(); @@ -14915,6 +16154,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SEC return SEC; + case 2: // TNASE + return TNASE; default: return null; } @@ -14960,6 +16201,8 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SEC, new org.apache.thrift.meta_data.FieldMetaData("sec", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeSystemProperty_result.class, metaDataMap); } @@ -14968,10 +16211,12 @@ public removeSystemProperty_result() { } public removeSystemProperty_result( - org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) + org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.sec = sec; + this.tnase = tnase; } /** @@ -14981,6 +16226,9 @@ public removeSystemProperty_result(removeSystemProperty_result other) { if (other.isSetSec()) { this.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(other.sec); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public removeSystemProperty_result deepCopy() { @@ -14990,6 +16238,7 @@ public removeSystemProperty_result deepCopy() { @Override public void clear() { this.sec = null; + this.tnase = null; } public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException getSec() { @@ -15016,6 +16265,30 @@ public void setSecIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public removeSystemProperty_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SEC: @@ -15026,6 +16299,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -15034,6 +16315,9 @@ public Object getFieldValue(_Fields field) { case SEC: return getSec(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -15047,6 +16331,8 @@ public boolean isSet(_Fields field) { switch (field) { case SEC: return isSetSec(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -15073,6 +16359,15 @@ public boolean equals(removeSystemProperty_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -15085,6 +16380,11 @@ public int hashCode() { if (present_sec) list.add(sec); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -15106,6 +16406,16 @@ public int compareTo(removeSystemProperty_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -15133,6 +16443,14 @@ public String toString() { sb.append(this.sec); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -15185,6 +16503,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, removeSystemPropert org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -15205,6 +16532,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, removeSystemProper struct.sec.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -15226,21 +16558,32 @@ public void write(org.apache.thrift.protocol.TProtocol prot, removeSystemPropert if (struct.isSetSec()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetTnase()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetSec()) { struct.sec.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeSystemProperty_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(); struct.sec.read(iprot); struct.setSecIsSet(true); } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -15727,6 +17070,7 @@ public static class getMasterStats_result implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -15736,11 +17080,13 @@ public static class getMasterStats_result implements org.apache.thrift.TBase byName = new HashMap(); @@ -15759,6 +17105,8 @@ public static _Fields findByThriftId(int fieldId) { return SUCCESS; case 1: // SEC return SEC; + case 2: // TNASE + return TNASE; default: return null; } @@ -15806,6 +17154,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MasterMonitorInfo.class))); tmpMap.put(_Fields.SEC, new org.apache.thrift.meta_data.FieldMetaData("sec", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMasterStats_result.class, metaDataMap); } @@ -15815,11 +17165,13 @@ public getMasterStats_result() { public getMasterStats_result( MasterMonitorInfo success, - org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) + org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.success = success; this.sec = sec; + this.tnase = tnase; } /** @@ -15832,6 +17184,9 @@ public getMasterStats_result(getMasterStats_result other) { if (other.isSetSec()) { this.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(other.sec); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public getMasterStats_result deepCopy() { @@ -15842,6 +17197,7 @@ public getMasterStats_result deepCopy() { public void clear() { this.success = null; this.sec = null; + this.tnase = null; } public MasterMonitorInfo getSuccess() { @@ -15892,6 +17248,30 @@ public void setSecIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public getMasterStats_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -15910,6 +17290,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -15921,6 +17309,9 @@ public Object getFieldValue(_Fields field) { case SEC: return getSec(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -15936,6 +17327,8 @@ public boolean isSet(_Fields field) { return isSetSuccess(); case SEC: return isSetSec(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -15967,7 +17360,16 @@ public boolean equals(getMasterStats_result that) { if (this_present_sec || that_present_sec) { if (!(this_present_sec && that_present_sec)) return false; - if (!this.sec.equals(that.sec)) + if (!this.sec.equals(that.sec)) + return false; + } + + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) return false; } @@ -15988,6 +17390,11 @@ public int hashCode() { if (present_sec) list.add(sec); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -16019,6 +17426,16 @@ public int compareTo(getMasterStats_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -16054,6 +17471,14 @@ public String toString() { sb.append(this.sec); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -16118,6 +17543,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getMasterStats_resu org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -16143,6 +17577,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getMasterStats_res struct.sec.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -16167,19 +17606,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getMasterStats_resu if (struct.isSetSec()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetTnase()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetSec()) { struct.sec.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getMasterStats_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new MasterMonitorInfo(); struct.success.read(iprot); @@ -16190,6 +17635,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getMasterStats_resul struct.sec.read(iprot); struct.setSecIsSet(true); } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -16564,6 +18014,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, waitForBalance_args public static class waitForBalance_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("waitForBalance_result"); + private static final org.apache.thrift.protocol.TField TNASE_FIELD_DESC = new org.apache.thrift.protocol.TField("tnase", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -16571,10 +18022,11 @@ public static class waitForBalance_result implements org.apache.thrift.TBase byName = new HashMap(); @@ -16589,6 +18041,8 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // TNASE + return TNASE; default: return null; } @@ -16627,9 +18081,13 @@ public String getFieldName() { return _fieldName; } } + + // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(waitForBalance_result.class, metaDataMap); } @@ -16637,10 +18095,20 @@ public String getFieldName() { public waitForBalance_result() { } + public waitForBalance_result( + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) + { + this(); + this.tnase = tnase; + } + /** * Performs a deep copy on other. */ public waitForBalance_result(waitForBalance_result other) { + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public waitForBalance_result deepCopy() { @@ -16649,15 +18117,51 @@ public waitForBalance_result deepCopy() { @Override public void clear() { + this.tnase = null; + } + + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public waitForBalance_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -16669,6 +18173,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -16686,6 +18192,15 @@ public boolean equals(waitForBalance_result that) { if (that == null) return false; + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -16693,6 +18208,11 @@ public boolean equals(waitForBalance_result that) { public int hashCode() { List list = new ArrayList(); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -16704,6 +18224,16 @@ public int compareTo(waitForBalance_result other) { int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -16724,6 +18254,13 @@ public String toString() { StringBuilder sb = new StringBuilder("waitForBalance_result("); boolean first = true; + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -16767,6 +18304,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, waitForBalance_resu break; } switch (schemeField.id) { + case 1: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -16782,6 +18328,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, waitForBalance_res struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -16799,11 +18350,25 @@ private static class waitForBalance_resultTupleScheme extends TupleScheme, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -18802,11 +20368,13 @@ public static class getActiveTservers_result implements org.apache.thrift.TBase< public List success; // required public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec; // required + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), - SEC((short)1, "sec"); + SEC((short)1, "sec"), + TNASE((short)2, "tnase"); private static final Map byName = new HashMap(); @@ -18825,6 +20393,8 @@ public static _Fields findByThriftId(int fieldId) { return SUCCESS; case 1: // SEC return SEC; + case 2: // TNASE + return TNASE; default: return null; } @@ -18873,6 +20443,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.SEC, new org.apache.thrift.meta_data.FieldMetaData("sec", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActiveTservers_result.class, metaDataMap); } @@ -18882,11 +20454,13 @@ public getActiveTservers_result() { public getActiveTservers_result( List success, - org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) + org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.success = success; this.sec = sec; + this.tnase = tnase; } /** @@ -18900,6 +20474,9 @@ public getActiveTservers_result(getActiveTservers_result other) { if (other.isSetSec()) { this.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(other.sec); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public getActiveTservers_result deepCopy() { @@ -18910,6 +20487,7 @@ public getActiveTservers_result deepCopy() { public void clear() { this.success = null; this.sec = null; + this.tnase = null; } public int getSuccessSize() { @@ -18975,6 +20553,30 @@ public void setSecIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public getActiveTservers_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -18993,6 +20595,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -19004,6 +20614,9 @@ public Object getFieldValue(_Fields field) { case SEC: return getSec(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -19019,6 +20632,8 @@ public boolean isSet(_Fields field) { return isSetSuccess(); case SEC: return isSetSec(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -19054,6 +20669,15 @@ public boolean equals(getActiveTservers_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -19071,6 +20695,11 @@ public int hashCode() { if (present_sec) list.add(sec); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -19102,6 +20731,16 @@ public int compareTo(getActiveTservers_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -19137,6 +20776,14 @@ public String toString() { sb.append(this.sec); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -19207,6 +20854,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getActiveTservers_r org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -19239,6 +20895,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getActiveTservers_ struct.sec.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -19263,7 +20924,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getActiveTservers_r if (struct.isSetSec()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetTnase()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); @@ -19276,12 +20940,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getActiveTservers_r if (struct.isSetSec()) { struct.sec.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getActiveTservers_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list109 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); @@ -19300,6 +20967,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getActiveTservers_re struct.sec.read(iprot); struct.setSecIsSet(true); } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -19896,6 +21568,7 @@ public static class getDelegationToken_result implements org.apache.thrift.TBase private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField SEC_FIELD_DESC = new org.apache.thrift.protocol.TField("sec", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField TNASE_FIELD_DESC = new org.apache.thrift.protocol.TField("tnase", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -19905,11 +21578,13 @@ public static class getDelegationToken_result implements org.apache.thrift.TBase public org.apache.accumulo.core.security.thrift.TDelegationToken success; // required public org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec; // required + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), - SEC((short)1, "sec"); + SEC((short)1, "sec"), + TNASE((short)2, "tnase"); private static final Map byName = new HashMap(); @@ -19928,6 +21603,8 @@ public static _Fields findByThriftId(int fieldId) { return SUCCESS; case 1: // SEC return SEC; + case 2: // TNASE + return TNASE; default: return null; } @@ -19975,6 +21652,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.accumulo.core.security.thrift.TDelegationToken.class))); tmpMap.put(_Fields.SEC, new org.apache.thrift.meta_data.FieldMetaData("sec", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDelegationToken_result.class, metaDataMap); } @@ -19984,11 +21663,13 @@ public getDelegationToken_result() { public getDelegationToken_result( org.apache.accumulo.core.security.thrift.TDelegationToken success, - org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) + org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.success = success; this.sec = sec; + this.tnase = tnase; } /** @@ -20001,6 +21682,9 @@ public getDelegationToken_result(getDelegationToken_result other) { if (other.isSetSec()) { this.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(other.sec); } + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public getDelegationToken_result deepCopy() { @@ -20011,6 +21695,7 @@ public getDelegationToken_result deepCopy() { public void clear() { this.success = null; this.sec = null; + this.tnase = null; } public org.apache.accumulo.core.security.thrift.TDelegationToken getSuccess() { @@ -20061,6 +21746,30 @@ public void setSecIsSet(boolean value) { } } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public getDelegationToken_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -20079,6 +21788,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -20090,6 +21807,9 @@ public Object getFieldValue(_Fields field) { case SEC: return getSec(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -20105,6 +21825,8 @@ public boolean isSet(_Fields field) { return isSetSuccess(); case SEC: return isSetSec(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -20140,6 +21862,15 @@ public boolean equals(getDelegationToken_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -20157,6 +21888,11 @@ public int hashCode() { if (present_sec) list.add(sec); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -20188,6 +21924,16 @@ public int compareTo(getDelegationToken_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -20223,6 +21969,14 @@ public String toString() { sb.append(this.sec); } first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -20287,6 +22041,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getDelegationToken_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -20312,6 +22075,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getDelegationToken struct.sec.write(oprot); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -20336,19 +22104,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getDelegationToken_ if (struct.isSetSec()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetTnase()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetSec()) { struct.sec.write(oprot); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getDelegationToken_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new org.apache.accumulo.core.security.thrift.TDelegationToken(); struct.success.read(iprot); @@ -20359,6 +22133,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getDelegationToken_r struct.sec.read(iprot); struct.setSecIsSet(true); } + if (incoming.get(2)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } @@ -21103,6 +22882,7 @@ public static class drainReplicationTable_result implements org.apache.thrift.TB private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drainReplicationTable_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField TNASE_FIELD_DESC = new org.apache.thrift.protocol.TField("tnase", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -21111,10 +22891,12 @@ public static class drainReplicationTable_result implements org.apache.thrift.TB } public boolean success; // required + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"); + SUCCESS((short)0, "success"), + TNASE((short)1, "tnase"); private static final Map byName = new HashMap(); @@ -21131,6 +22913,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; + case 1: // TNASE + return TNASE; default: return null; } @@ -21178,6 +22962,8 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.TNASE, new org.apache.thrift.meta_data.FieldMetaData("tnase", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drainReplicationTable_result.class, metaDataMap); } @@ -21186,11 +22972,13 @@ public drainReplicationTable_result() { } public drainReplicationTable_result( - boolean success) + boolean success, + org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { this(); this.success = success; setSuccessIsSet(true); + this.tnase = tnase; } /** @@ -21199,6 +22987,9 @@ public drainReplicationTable_result( public drainReplicationTable_result(drainReplicationTable_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; + if (other.isSetTnase()) { + this.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(other.tnase); + } } public drainReplicationTable_result deepCopy() { @@ -21209,6 +23000,7 @@ public drainReplicationTable_result deepCopy() { public void clear() { setSuccessIsSet(false); this.success = false; + this.tnase = null; } public boolean isSuccess() { @@ -21234,6 +23026,30 @@ public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + public org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException getTnase() { + return this.tnase; + } + + public drainReplicationTable_result setTnase(org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException tnase) { + this.tnase = tnase; + return this; + } + + public void unsetTnase() { + this.tnase = null; + } + + /** Returns true if field tnase is set (has been assigned a value) and false otherwise */ + public boolean isSetTnase() { + return this.tnase != null; + } + + public void setTnaseIsSet(boolean value) { + if (!value) { + this.tnase = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -21244,6 +23060,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case TNASE: + if (value == null) { + unsetTnase(); + } else { + setTnase((org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException)value); + } + break; + } } @@ -21252,6 +23076,9 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return isSuccess(); + case TNASE: + return getTnase(); + } throw new IllegalStateException(); } @@ -21265,6 +23092,8 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); + case TNASE: + return isSetTnase(); } throw new IllegalStateException(); } @@ -21291,6 +23120,15 @@ public boolean equals(drainReplicationTable_result that) { return false; } + boolean this_present_tnase = true && this.isSetTnase(); + boolean that_present_tnase = true && that.isSetTnase(); + if (this_present_tnase || that_present_tnase) { + if (!(this_present_tnase && that_present_tnase)) + return false; + if (!this.tnase.equals(that.tnase)) + return false; + } + return true; } @@ -21303,6 +23141,11 @@ public int hashCode() { if (present_success) list.add(success); + boolean present_tnase = true && (isSetTnase()); + list.add(present_tnase); + if (present_tnase) + list.add(tnase); + return list.hashCode(); } @@ -21324,6 +23167,16 @@ public int compareTo(drainReplicationTable_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTnase()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -21347,6 +23200,14 @@ public String toString() { sb.append("success:"); sb.append(this.success); first = false; + if (!first) sb.append(", "); + sb.append("tnase:"); + if (this.tnase == null) { + sb.append("null"); + } else { + sb.append(this.tnase); + } + first = false; sb.append(")"); return sb.toString(); } @@ -21400,6 +23261,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drainReplicationTab org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 1: // TNASE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -21420,6 +23290,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drainReplicationTa oprot.writeBool(struct.success); oprot.writeFieldEnd(); } + if (struct.tnase != null) { + oprot.writeFieldBegin(TNASE_FIELD_DESC); + struct.tnase.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -21441,20 +23316,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drainReplicationTab if (struct.isSetSuccess()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetTnase()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { oprot.writeBool(struct.success); } + if (struct.isSetTnase()) { + struct.tnase.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, drainReplicationTable_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } + if (incoming.get(1)) { + struct.tnase = new org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException(); + struct.tnase.read(iprot); + struct.setTnaseIsSet(true); + } } } diff --git a/core/src/main/thrift/client.thrift b/core/src/main/thrift/client.thrift index 38a8076585a..722faafb313 100644 --- a/core/src/main/thrift/client.thrift +++ b/core/src/main/thrift/client.thrift @@ -94,6 +94,10 @@ exception ThriftTableOperationException { 5:string description } +exception ThriftNotActiveServiceException { + +} + struct TDiskUsage { 1:list tables 2:i64 usage diff --git a/core/src/main/thrift/master.thrift b/core/src/main/thrift/master.thrift index b7d10f3bdb1..58829ecaadc 100644 --- a/core/src/main/thrift/master.thrift +++ b/core/src/main/thrift/master.thrift @@ -160,47 +160,47 @@ enum FateOperation { service FateService { // register a fate operation by reserving an opid - i64 beginFateOperation(2:trace.TInfo tinfo, 1:security.TCredentials credentials) throws (1:client.ThriftSecurityException sec) + i64 beginFateOperation(2:trace.TInfo tinfo, 1:security.TCredentials credentials) throws (1:client.ThriftSecurityException sec, 2:client.ThriftNotActiveServiceException tnase) // initiate execution of the fate operation; set autoClean to true if not waiting for completion - void executeFateOperation(7:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:i64 opid, 3:FateOperation op, 4:list arguments, 5:map options, 6:bool autoClean) throws (1:client.ThriftSecurityException sec, 2:client.ThriftTableOperationException tope) + void executeFateOperation(7:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:i64 opid, 3:FateOperation op, 4:list arguments, 5:map options, 6:bool autoClean) throws (1:client.ThriftSecurityException sec, 2:client.ThriftTableOperationException tope, 3:client.ThriftNotActiveServiceException tnase) // wait for completion of the operation and get the returned exception, if any - string waitForFateOperation(3:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:i64 opid) throws (1:client.ThriftSecurityException sec, 2:client.ThriftTableOperationException tope) + string waitForFateOperation(3:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:i64 opid) throws (1:client.ThriftSecurityException sec, 2:client.ThriftTableOperationException tope, 3:client.ThriftNotActiveServiceException tnase) // clean up fate operation if autoClean was not set, after waiting - void finishFateOperation(3:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:i64 opid) throws (1:client.ThriftSecurityException sec) + void finishFateOperation(3:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:i64 opid) throws (1:client.ThriftSecurityException sec, 2:client.ThriftNotActiveServiceException tnase) } service MasterClientService extends FateService { // table management methods - i64 initiateFlush(3:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string tableName) throws (1:client.ThriftSecurityException sec, 2:client.ThriftTableOperationException tope) - void waitForFlush(5:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string tableName, 6:binary startRow, 7:binary endRow, 3:i64 flushID, 4:i64 maxLoops) throws (1:client.ThriftSecurityException sec, 2:client.ThriftTableOperationException tope) + i64 initiateFlush(3:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string tableName) throws (1:client.ThriftSecurityException sec, 2:client.ThriftTableOperationException tope, 3:client.ThriftNotActiveServiceException tnase) + void waitForFlush(5:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string tableName, 6:binary startRow, 7:binary endRow, 3:i64 flushID, 4:i64 maxLoops) throws (1:client.ThriftSecurityException sec, 2:client.ThriftTableOperationException tope, 3:client.ThriftNotActiveServiceException tnase) - void setTableProperty(5:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string tableName, 3:string property, 4:string value) throws (1:client.ThriftSecurityException sec, 2:client.ThriftTableOperationException tope) - void removeTableProperty(4:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string tableName, 3:string property) throws (1:client.ThriftSecurityException sec, 2:client.ThriftTableOperationException tope) + void setTableProperty(5:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string tableName, 3:string property, 4:string value) throws (1:client.ThriftSecurityException sec, 2:client.ThriftTableOperationException tope, 3:client.ThriftNotActiveServiceException tnase) + void removeTableProperty(4:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string tableName, 3:string property) throws (1:client.ThriftSecurityException sec, 2:client.ThriftTableOperationException tope, 3:client.ThriftNotActiveServiceException tnase) - void setNamespaceProperty(5:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string ns, 3:string property, 4:string value) throws (1:client.ThriftSecurityException sec, 2:client.ThriftTableOperationException tope) - void removeNamespaceProperty(4:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string ns, 3:string property) throws (1:client.ThriftSecurityException sec, 2:client.ThriftTableOperationException tope) + void setNamespaceProperty(5:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string ns, 3:string property, 4:string value) throws (1:client.ThriftSecurityException sec, 2:client.ThriftTableOperationException tope, 3:client.ThriftNotActiveServiceException tnase) + void removeNamespaceProperty(4:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string ns, 3:string property) throws (1:client.ThriftSecurityException sec, 2:client.ThriftTableOperationException tope, 3:client.ThriftNotActiveServiceException tnase) // system management methods - void setMasterGoalState(3:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:MasterGoalState state) throws (1:client.ThriftSecurityException sec); - void shutdown(3:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:bool stopTabletServers) throws (1:client.ThriftSecurityException sec) - void shutdownTabletServer(3:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string tabletServer, 4:bool force) throws (1: client.ThriftSecurityException sec) - void setSystemProperty(4:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string property, 3:string value) throws (1:client.ThriftSecurityException sec) - void removeSystemProperty(3:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string property) throws (1:client.ThriftSecurityException sec) + void setMasterGoalState(3:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:MasterGoalState state) throws (1:client.ThriftSecurityException sec, 2:client.ThriftNotActiveServiceException tnase); + void shutdown(3:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:bool stopTabletServers) throws (1:client.ThriftSecurityException sec, 2:client.ThriftNotActiveServiceException tnase) + void shutdownTabletServer(3:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string tabletServer, 4:bool force) throws (1: client.ThriftSecurityException sec, 2:client.ThriftNotActiveServiceException tnase) + void setSystemProperty(4:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string property, 3:string value) throws (1:client.ThriftSecurityException sec, 2:client.ThriftNotActiveServiceException tnase) + void removeSystemProperty(3:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string property) throws (1:client.ThriftSecurityException sec, 2:client.ThriftNotActiveServiceException tnase) // system monitoring methods - MasterMonitorInfo getMasterStats(2:trace.TInfo tinfo, 1:security.TCredentials credentials) throws (1:client.ThriftSecurityException sec) - void waitForBalance(1:trace.TInfo tinfo) + MasterMonitorInfo getMasterStats(2:trace.TInfo tinfo, 1:security.TCredentials credentials) throws (1:client.ThriftSecurityException sec, 2:client.ThriftNotActiveServiceException tnase) + void waitForBalance(1:trace.TInfo tinfo) throws (1:client.ThriftNotActiveServiceException tnase) // tablet server reporting oneway void reportSplitExtent(4:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string serverName, 3:TabletSplit split) oneway void reportTabletStatus(5:trace.TInfo tinfo, 1:security.TCredentials credentials, 2:string serverName, 3:TabletLoadState status, 4:data.TKeyExtent tablet) - list getActiveTservers(1:trace.TInfo tinfo, 2:security.TCredentials credentials) throws (1:client.ThriftSecurityException sec) + list getActiveTservers(1:trace.TInfo tinfo, 2:security.TCredentials credentials) throws (1:client.ThriftSecurityException sec, 2:client.ThriftNotActiveServiceException tnase) // Delegation token request - security.TDelegationToken getDelegationToken(1:trace.TInfo tinfo, 2:security.TCredentials credentials, 3:security.TDelegationTokenConfig cfg) throws (1:client.ThriftSecurityException sec) + security.TDelegationToken getDelegationToken(1:trace.TInfo tinfo, 2:security.TCredentials credentials, 3:security.TDelegationTokenConfig cfg) throws (1:client.ThriftSecurityException sec, 2:client.ThriftNotActiveServiceException tnase) // Determine when all provided logs are replicated - bool drainReplicationTable(1:trace.TInfo tfino, 2:security.TCredentials credentials, 3:string tableName, 4:set logsToWatch) + bool drainReplicationTable(1:trace.TInfo tfino, 2:security.TCredentials credentials, 3:string tableName, 4:set logsToWatch) throws (1:client.ThriftNotActiveServiceException tnase) } diff --git a/minicluster/src/main/java/org/apache/accumulo/minicluster/impl/MiniAccumuloClusterImpl.java b/minicluster/src/main/java/org/apache/accumulo/minicluster/impl/MiniAccumuloClusterImpl.java index b8a0f64e218..84148ae9540 100644 --- a/minicluster/src/main/java/org/apache/accumulo/minicluster/impl/MiniAccumuloClusterImpl.java +++ b/minicluster/src/main/java/org/apache/accumulo/minicluster/impl/MiniAccumuloClusterImpl.java @@ -65,6 +65,7 @@ import org.apache.accumulo.core.client.impl.ClientContext; import org.apache.accumulo.core.client.impl.Credentials; import org.apache.accumulo.core.client.impl.MasterClient; +import org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException; import org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException; import org.apache.accumulo.core.client.security.tokens.AuthenticationToken; import org.apache.accumulo.core.client.security.tokens.PasswordToken; @@ -797,22 +798,26 @@ public Integer call() throws InterruptedException { */ public MasterMonitorInfo getMasterMonitorInfo() throws AccumuloException, AccumuloSecurityException { MasterClientService.Iface client = null; - MasterMonitorInfo stats = null; - try { - Instance instance = new ZooKeeperInstance(getClientConfig()); - ClientContext context = new ClientContext(instance, new Credentials("root", new PasswordToken("unchecked")), getClientConfig()); - client = MasterClient.getConnectionWithRetry(context); - stats = client.getMasterStats(Tracer.traceInfo(), context.rpcCreds()); - } catch (ThriftSecurityException exception) { - throw new AccumuloSecurityException(exception); - } catch (TException exception) { - throw new AccumuloException(exception); - } finally { - if (client != null) { - MasterClient.close(client); + while (true) { + try { + Instance instance = new ZooKeeperInstance(getClientConfig()); + ClientContext context = new ClientContext(instance, new Credentials("root", new PasswordToken("unchecked")), getClientConfig()); + client = MasterClient.getConnectionWithRetry(context); + return client.getMasterStats(Tracer.traceInfo(), context.rpcCreds()); + } catch (ThriftSecurityException exception) { + throw new AccumuloSecurityException(exception); + } catch (ThriftNotActiveServiceException e) { + // Let it loop, fetching a new location + log.debug("Contacted a Master which is no longer active, retrying"); + sleepUninterruptibly(100, TimeUnit.MILLISECONDS); + } catch (TException exception) { + throw new AccumuloException(exception); + } finally { + if (client != null) { + MasterClient.close(client); + } } } - return stats; } public synchronized MiniDFSCluster getMiniDfs() { diff --git a/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java b/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java index 56866c24028..6e2ed13a2cf 100644 --- a/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java +++ b/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java @@ -337,6 +337,7 @@ private void handleExceptionNNF(Exception ex) throws org.apache.accumulo.proxy.t private void handleException(Exception ex) throws org.apache.accumulo.proxy.thrift.AccumuloException, org.apache.accumulo.proxy.thrift.AccumuloSecurityException, TException { try { + logger.info("Foo", ex); throw ex; } catch (AccumuloException e) { throw new org.apache.accumulo.proxy.thrift.AccumuloException(e.toString()); diff --git a/server/base/src/main/java/org/apache/accumulo/server/rpc/HighlyAvailableServiceInvocationHandler.java b/server/base/src/main/java/org/apache/accumulo/server/rpc/HighlyAvailableServiceInvocationHandler.java index 2e8aa63b4eb..b7e90522001 100644 --- a/server/base/src/main/java/org/apache/accumulo/server/rpc/HighlyAvailableServiceInvocationHandler.java +++ b/server/base/src/main/java/org/apache/accumulo/server/rpc/HighlyAvailableServiceInvocationHandler.java @@ -17,16 +17,22 @@ package org.apache.accumulo.server.rpc; import java.lang.reflect.InvocationHandler; +import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Objects; +import org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException; import org.apache.accumulo.server.HighlyAvailableService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + /** * An {@link InvocationHandler} which checks to see if a {@link HighlyAvailableService} is the current active instance of that service, throwing * {@link NotActiveServiceException} when it is not the current active instance. */ public class HighlyAvailableServiceInvocationHandler implements InvocationHandler { + private static final Logger LOG = LoggerFactory.getLogger(HighlyAvailableServiceInvocationHandler.class); private final I instance; private final HighlyAvailableService service; @@ -40,9 +46,14 @@ public HighlyAvailableServiceInvocationHandler(I instance, HighlyAvailableServic public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // If the service is not active, throw an exception if (!service.isActiveService()) { - throw new NotActiveServiceException(); + LOG.trace("Denying access to RPC service"); + throw new ThriftNotActiveServiceException(); + } + try { + // Otherwise, call the real method + return method.invoke(instance, args); + } catch (InvocationTargetException ex) { + throw ex.getCause(); } - // Otherwise, call the real method - return method.invoke(instance, args); } } diff --git a/server/base/src/main/java/org/apache/accumulo/server/rpc/NotActiveServiceException.java b/server/base/src/main/java/org/apache/accumulo/server/rpc/NotActiveServiceException.java index 6846b6750ae..be4b3ef61a8 100644 --- a/server/base/src/main/java/org/apache/accumulo/server/rpc/NotActiveServiceException.java +++ b/server/base/src/main/java/org/apache/accumulo/server/rpc/NotActiveServiceException.java @@ -19,7 +19,7 @@ /** * An {@link Exception} which denotes that the service which was invoked is not the active instance for that service in the Accumulo cluster. */ -public class NotActiveServiceException extends Exception { +public class NotActiveServiceException extends RuntimeException { private static final long serialVersionUID = 1L; diff --git a/server/master/src/main/java/org/apache/accumulo/master/Master.java b/server/master/src/main/java/org/apache/accumulo/master/Master.java index 94f51cdbfb6..1d7f16a0324 100644 --- a/server/master/src/main/java/org/apache/accumulo/master/Master.java +++ b/server/master/src/main/java/org/apache/accumulo/master/Master.java @@ -30,6 +30,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.Optional; +import java.util.Random; import java.util.Set; import java.util.SortedMap; import java.util.TreeMap; @@ -1140,7 +1141,7 @@ public void run() throws IOException, InterruptedException, KeeperException { clientHandler = new MasterClientServiceHandler(this); // Ensure that calls before the master gets the lock fail Iface haProxy = HighlyAvailableServiceWrapper.service(clientHandler, this); - Iface rpcProxy = RpcWrapper.service(clientHandler, new Processor(haProxy)); + Iface rpcProxy = RpcWrapper.service(haProxy, new Processor(clientHandler)); final Processor processor; if (ThriftServerType.SASL == getThriftServerType()) { Iface tcredsProxy = TCredentialsUpdatingWrapper.service(rpcProxy, clientHandler.getClass(), getConfiguration()); @@ -1692,11 +1693,14 @@ public Long getSteadyTime() { return timeKeeper.getTime(); } + private final Random r = new Random(); + @Override public boolean isActiveService() { - if (null != masterLock) { - return masterLock.isLocked(); - } - return false; + return r.nextInt(2) == 0; + // if (null != masterLock) { + // return masterLock.isLocked(); + // } + // return false; } } diff --git a/shell/src/main/java/org/apache/accumulo/shell/commands/ListBulkCommand.java b/shell/src/main/java/org/apache/accumulo/shell/commands/ListBulkCommand.java index 8f09e8ae329..6f2e01e27e9 100644 --- a/shell/src/main/java/org/apache/accumulo/shell/commands/ListBulkCommand.java +++ b/shell/src/main/java/org/apache/accumulo/shell/commands/ListBulkCommand.java @@ -16,11 +16,15 @@ */ package org.apache.accumulo.shell.commands; +import static com.google.common.util.concurrent.Uninterruptibles.sleepUninterruptibly; + import java.util.ArrayList; import java.util.Collections; import java.util.List; +import java.util.concurrent.TimeUnit; import org.apache.accumulo.core.client.impl.MasterClient; +import org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException; import org.apache.accumulo.core.master.thrift.MasterClientService; import org.apache.accumulo.core.master.thrift.MasterMonitorInfo; import org.apache.accumulo.core.trace.Tracer; @@ -48,13 +52,19 @@ public int execute(final String fullCommand, final CommandLine cl, final Shell s MasterMonitorInfo stats; MasterClientService.Iface client = null; - try { - AccumuloServerContext context = new AccumuloServerContext(new ServerConfigurationFactory(shellState.getInstance())); - client = MasterClient.getConnectionWithRetry(context); - stats = client.getMasterStats(Tracer.traceInfo(), context.rpcCreds()); - } finally { - if (client != null) - MasterClient.close(client); + AccumuloServerContext context = new AccumuloServerContext(new ServerConfigurationFactory(shellState.getInstance())); + while (true) { + try { + client = MasterClient.getConnectionWithRetry(context); + stats = client.getMasterStats(Tracer.traceInfo(), context.rpcCreds()); + break; + } catch (ThriftNotActiveServiceException e) { + // Let it loop, fetching a new location + sleepUninterruptibly(100, TimeUnit.MILLISECONDS); + } finally { + if (client != null) + MasterClient.close(client); + } } final boolean paginate = !cl.hasOption(disablePaginationOpt.getOpt()); diff --git a/test/src/main/java/org/apache/accumulo/test/DetectDeadTabletServersIT.java b/test/src/main/java/org/apache/accumulo/test/DetectDeadTabletServersIT.java index f207353f8c3..50e50b6a8bb 100644 --- a/test/src/main/java/org/apache/accumulo/test/DetectDeadTabletServersIT.java +++ b/test/src/main/java/org/apache/accumulo/test/DetectDeadTabletServersIT.java @@ -16,13 +16,17 @@ */ package org.apache.accumulo.test; +import static com.google.common.util.concurrent.Uninterruptibles.sleepUninterruptibly; import static org.apache.accumulo.minicluster.ServerType.TABLET_SERVER; import static org.junit.Assert.assertEquals; +import java.util.concurrent.TimeUnit; + import org.apache.accumulo.core.client.Connector; import org.apache.accumulo.core.client.impl.ClientContext; import org.apache.accumulo.core.client.impl.Credentials; import org.apache.accumulo.core.client.impl.MasterClient; +import org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException; import org.apache.accumulo.core.client.security.tokens.PasswordToken; import org.apache.accumulo.core.conf.Property; import org.apache.accumulo.core.master.thrift.MasterClientService.Client; @@ -83,13 +87,18 @@ private MasterMonitorInfo getStats(Connector c) throws Exception { Credentials creds = new Credentials("root", new PasswordToken(ROOT_PASSWORD)); ClientContext context = new ClientContext(c.getInstance(), creds, getClientConfig()); Client client = null; - try { - client = MasterClient.getConnectionWithRetry(context); - log.info("Fetching master stats"); - return client.getMasterStats(Tracer.traceInfo(), context.rpcCreds()); - } finally { - if (client != null) { - MasterClient.close(client); + while (true) { + try { + client = MasterClient.getConnectionWithRetry(context); + log.info("Fetching master stats"); + return client.getMasterStats(Tracer.traceInfo(), context.rpcCreds()); + } catch (ThriftNotActiveServiceException e) { + // Let it loop, fetching a new location + sleepUninterruptibly(100, TimeUnit.MILLISECONDS); + } finally { + if (client != null) { + MasterClient.close(client); + } } } } diff --git a/test/src/main/java/org/apache/accumulo/test/GetMasterStats.java b/test/src/main/java/org/apache/accumulo/test/GetMasterStats.java index 0d0449e597a..5403b5f9874 100644 --- a/test/src/main/java/org/apache/accumulo/test/GetMasterStats.java +++ b/test/src/main/java/org/apache/accumulo/test/GetMasterStats.java @@ -16,11 +16,15 @@ */ package org.apache.accumulo.test; +import static com.google.common.util.concurrent.Uninterruptibles.sleepUninterruptibly; + import java.text.SimpleDateFormat; import java.util.Date; import java.util.Map.Entry; +import java.util.concurrent.TimeUnit; import org.apache.accumulo.core.client.impl.MasterClient; +import org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException; import org.apache.accumulo.core.master.thrift.BulkImportStatus; import org.apache.accumulo.core.master.thrift.DeadServer; import org.apache.accumulo.core.master.thrift.MasterClientService; @@ -38,13 +42,19 @@ public class GetMasterStats { public static void main(String[] args) throws Exception { MasterClientService.Iface client = null; MasterMonitorInfo stats = null; - try { - AccumuloServerContext context = new AccumuloServerContext(new ServerConfigurationFactory(HdfsZooInstance.getInstance())); - client = MasterClient.getConnectionWithRetry(context); - stats = client.getMasterStats(Tracer.traceInfo(), context.rpcCreds()); - } finally { - if (client != null) - MasterClient.close(client); + AccumuloServerContext context = new AccumuloServerContext(new ServerConfigurationFactory(HdfsZooInstance.getInstance())); + while (true) { + try { + client = MasterClient.getConnectionWithRetry(context); + stats = client.getMasterStats(Tracer.traceInfo(), context.rpcCreds()); + break; + } catch (ThriftNotActiveServiceException e) { + // Let it loop, fetching a new location + sleepUninterruptibly(100, TimeUnit.MILLISECONDS); + } finally { + if (client != null) + MasterClient.close(client); + } } out(0, "State: " + stats.state.name()); out(0, "Goal State: " + stats.goalState.name()); diff --git a/test/src/main/java/org/apache/accumulo/test/continuous/ContinuousStatsCollector.java b/test/src/main/java/org/apache/accumulo/test/continuous/ContinuousStatsCollector.java index b88008532bf..8f8c791a473 100644 --- a/test/src/main/java/org/apache/accumulo/test/continuous/ContinuousStatsCollector.java +++ b/test/src/main/java/org/apache/accumulo/test/continuous/ContinuousStatsCollector.java @@ -16,9 +16,12 @@ */ package org.apache.accumulo.test.continuous; +import static com.google.common.util.concurrent.Uninterruptibles.sleepUninterruptibly; + import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; +import java.util.concurrent.TimeUnit; import java.util.Timer; import java.util.TimerTask; @@ -30,6 +33,7 @@ import org.apache.accumulo.core.client.impl.Credentials; import org.apache.accumulo.core.client.impl.MasterClient; import org.apache.accumulo.core.client.impl.Tables; +import org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException; import org.apache.accumulo.core.data.Key; import org.apache.accumulo.core.data.Value; import org.apache.accumulo.core.data.impl.KeyExtent; @@ -136,37 +140,42 @@ private String getFSStats() throws Exception { private String getACUStats() throws Exception { MasterClientService.Iface client = null; - try { - ClientContext context = new ClientContext(opts.getInstance(), new Credentials(opts.getPrincipal(), opts.getToken()), new ServerConfigurationFactory( - opts.getInstance()).getConfiguration()); - client = MasterClient.getConnectionWithRetry(context); - MasterMonitorInfo stats = client.getMasterStats(Tracer.traceInfo(), context.rpcCreds()); - - TableInfo all = new TableInfo(); - Map tableSummaries = new HashMap<>(); - - for (TabletServerStatus server : stats.tServerInfo) { - for (Entry info : server.tableMap.entrySet()) { - TableInfo tableSummary = tableSummaries.get(info.getKey()); - if (tableSummary == null) { - tableSummary = new TableInfo(); - tableSummaries.put(info.getKey(), tableSummary); + while (true) { + try { + ClientContext context = new ClientContext(opts.getInstance(), new Credentials(opts.getPrincipal(), opts.getToken()), new ServerConfigurationFactory( + opts.getInstance()).getConfiguration()); + client = MasterClient.getConnectionWithRetry(context); + MasterMonitorInfo stats = client.getMasterStats(Tracer.traceInfo(), context.rpcCreds()); + + TableInfo all = new TableInfo(); + Map tableSummaries = new HashMap<>(); + + for (TabletServerStatus server : stats.tServerInfo) { + for (Entry info : server.tableMap.entrySet()) { + TableInfo tableSummary = tableSummaries.get(info.getKey()); + if (tableSummary == null) { + tableSummary = new TableInfo(); + tableSummaries.put(info.getKey(), tableSummary); + } + TableInfoUtil.add(tableSummary, info.getValue()); + TableInfoUtil.add(all, info.getValue()); } - TableInfoUtil.add(tableSummary, info.getValue()); - TableInfoUtil.add(all, info.getValue()); } - } - TableInfo ti = tableSummaries.get(tableId); + TableInfo ti = tableSummaries.get(tableId); - return "" + stats.tServerInfo.size() + " " + all.recs + " " + (long) all.ingestRate + " " + (long) all.queryRate + " " + ti.recs + " " - + ti.recsInMemory + " " + (long) ti.ingestRate + " " + (long) ti.queryRate + " " + ti.tablets + " " + ti.onlineTablets; + return "" + stats.tServerInfo.size() + " " + all.recs + " " + (long) all.ingestRate + " " + (long) all.queryRate + " " + ti.recs + " " + + ti.recsInMemory + " " + (long) ti.ingestRate + " " + (long) ti.queryRate + " " + ti.tablets + " " + ti.onlineTablets; - } finally { - if (client != null) - MasterClient.close(client); + } catch (ThriftNotActiveServiceException e) { + // Let it loop, fetching a new location + log.debug("Contacted a Master which is no longer active, retrying"); + sleepUninterruptibly(100, TimeUnit.MILLISECONDS); + } finally { + if (client != null) + MasterClient.close(client); + } } - } } diff --git a/test/src/main/java/org/apache/accumulo/test/functional/BalanceAfterCommsFailureIT.java b/test/src/main/java/org/apache/accumulo/test/functional/BalanceAfterCommsFailureIT.java index 525d9f9aaad..527c0555103 100644 --- a/test/src/main/java/org/apache/accumulo/test/functional/BalanceAfterCommsFailureIT.java +++ b/test/src/main/java/org/apache/accumulo/test/functional/BalanceAfterCommsFailureIT.java @@ -16,6 +16,7 @@ */ package org.apache.accumulo.test.functional; +import static com.google.common.util.concurrent.Uninterruptibles.sleepUninterruptibly; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -25,11 +26,13 @@ import java.util.List; import java.util.SortedSet; import java.util.TreeSet; +import java.util.concurrent.TimeUnit; import org.apache.accumulo.core.client.Connector; import org.apache.accumulo.core.client.impl.ClientContext; import org.apache.accumulo.core.client.impl.Credentials; import org.apache.accumulo.core.client.impl.MasterClient; +import org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException; import org.apache.accumulo.core.client.security.tokens.PasswordToken; import org.apache.accumulo.core.conf.Property; import org.apache.accumulo.core.master.thrift.MasterClientService; @@ -104,12 +107,19 @@ private void checkBalance(Connector c) throws Exception { int unassignedTablets = 1; for (int i = 0; unassignedTablets > 0 && i < 10; i++) { MasterClientService.Iface client = null; - try { - client = MasterClient.getConnectionWithRetry(context); - stats = client.getMasterStats(Tracer.traceInfo(), context.rpcCreds()); - } finally { - if (client != null) - MasterClient.close(client); + while (true) { + try { + client = MasterClient.getConnectionWithRetry(context); + stats = client.getMasterStats(Tracer.traceInfo(), context.rpcCreds()); + break; + } catch (ThriftNotActiveServiceException e) { + // Let it loop, fetching a new location + log.debug("Contacted a Master which is no longer active, retrying"); + sleepUninterruptibly(100, TimeUnit.MILLISECONDS); + } finally { + if (client != null) + MasterClient.close(client); + } } unassignedTablets = stats.getUnassignedTablets(); if (unassignedTablets > 0) { diff --git a/test/src/main/java/org/apache/accumulo/test/functional/BalanceInPresenceOfOfflineTableIT.java b/test/src/main/java/org/apache/accumulo/test/functional/BalanceInPresenceOfOfflineTableIT.java index 2fe560211f4..7b7a118ac28 100644 --- a/test/src/main/java/org/apache/accumulo/test/functional/BalanceInPresenceOfOfflineTableIT.java +++ b/test/src/main/java/org/apache/accumulo/test/functional/BalanceInPresenceOfOfflineTableIT.java @@ -16,10 +16,13 @@ */ package org.apache.accumulo.test.functional; +import static com.google.common.util.concurrent.Uninterruptibles.sleepUninterruptibly; + import java.util.Arrays; import java.util.Map; import java.util.SortedSet; import java.util.TreeSet; +import java.util.concurrent.TimeUnit; import org.apache.accumulo.core.cli.BatchWriterOpts; import org.apache.accumulo.core.cli.ScannerOpts; @@ -35,6 +38,7 @@ import org.apache.accumulo.core.client.impl.ClientContext; import org.apache.accumulo.core.client.impl.Credentials; import org.apache.accumulo.core.client.impl.MasterClient; +import org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException; import org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException; import org.apache.accumulo.core.conf.Property; import org.apache.accumulo.core.master.thrift.MasterClientService; @@ -151,17 +155,24 @@ public void test() throws Exception { MasterClientService.Iface client = null; MasterMonitorInfo stats = null; - try { - Instance instance = new ZooKeeperInstance(cluster.getClientConfig()); - client = MasterClient.getConnectionWithRetry(new ClientContext(instance, creds, cluster.getClientConfig())); - stats = client.getMasterStats(Tracer.traceInfo(), creds.toThrift(instance)); - } catch (ThriftSecurityException exception) { - throw new AccumuloSecurityException(exception); - } catch (TException exception) { - throw new AccumuloException(exception); - } finally { - if (client != null) { - MasterClient.close(client); + Instance instance = new ZooKeeperInstance(cluster.getClientConfig()); + while (true) { + try { + client = MasterClient.getConnectionWithRetry(new ClientContext(instance, creds, cluster.getClientConfig())); + stats = client.getMasterStats(Tracer.traceInfo(), creds.toThrift(instance)); + break; + } catch (ThriftSecurityException exception) { + throw new AccumuloSecurityException(exception); + } catch (ThriftNotActiveServiceException e) { + // Let it loop, fetching a new location + log.debug("Contacted a Master which is no longer active, retrying"); + sleepUninterruptibly(100, TimeUnit.MILLISECONDS); + } catch (TException exception) { + throw new AccumuloException(exception); + } finally { + if (client != null) { + MasterClient.close(client); + } } } diff --git a/test/src/main/java/org/apache/accumulo/test/functional/DynamicThreadPoolsIT.java b/test/src/main/java/org/apache/accumulo/test/functional/DynamicThreadPoolsIT.java index 62bac85309d..1188915cb56 100644 --- a/test/src/main/java/org/apache/accumulo/test/functional/DynamicThreadPoolsIT.java +++ b/test/src/main/java/org/apache/accumulo/test/functional/DynamicThreadPoolsIT.java @@ -28,6 +28,7 @@ import org.apache.accumulo.core.client.impl.ClientContext; import org.apache.accumulo.core.client.impl.Credentials; import org.apache.accumulo.core.client.impl.MasterClient; +import org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException; import org.apache.accumulo.core.conf.AccumuloConfiguration; import org.apache.accumulo.core.conf.Property; import org.apache.accumulo.core.master.thrift.MasterClientService; @@ -106,12 +107,18 @@ public void test() throws Exception { int count = 0; MasterClientService.Iface client = null; MasterMonitorInfo stats = null; - try { - client = MasterClient.getConnectionWithRetry(new ClientContext(c.getInstance(), creds, clientConf)); - stats = client.getMasterStats(Tracer.traceInfo(), creds.toThrift(c.getInstance())); - } finally { - if (client != null) - MasterClient.close(client); + while (true) { + try { + client = MasterClient.getConnectionWithRetry(new ClientContext(c.getInstance(), creds, clientConf)); + stats = client.getMasterStats(Tracer.traceInfo(), creds.toThrift(c.getInstance())); + break; + } catch (ThriftNotActiveServiceException e) { + // Let it loop, fetching a new location + sleepUninterruptibly(100, TimeUnit.MILLISECONDS); + } finally { + if (client != null) + MasterClient.close(client); + } } for (TabletServerStatus server : stats.tServerInfo) { for (TableInfo table : server.tableMap.values()) { diff --git a/test/src/main/java/org/apache/accumulo/test/functional/MetadataMaxFilesIT.java b/test/src/main/java/org/apache/accumulo/test/functional/MetadataMaxFilesIT.java index 6c4939f0d89..f331bbc634d 100644 --- a/test/src/main/java/org/apache/accumulo/test/functional/MetadataMaxFilesIT.java +++ b/test/src/main/java/org/apache/accumulo/test/functional/MetadataMaxFilesIT.java @@ -27,6 +27,7 @@ import org.apache.accumulo.core.client.impl.ClientContext; import org.apache.accumulo.core.client.impl.Credentials; import org.apache.accumulo.core.client.impl.MasterClient; +import org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException; import org.apache.accumulo.core.client.security.tokens.PasswordToken; import org.apache.accumulo.core.conf.Property; import org.apache.accumulo.core.master.thrift.MasterClientService.Client; @@ -96,6 +97,10 @@ public void test() throws Exception { client = MasterClient.getConnectionWithRetry(context); log.info("Fetching stats"); stats = client.getMasterStats(Tracer.traceInfo(), context.rpcCreds()); + } catch (ThriftNotActiveServiceException e) { + // Let it loop, fetching a new location + sleepUninterruptibly(100, TimeUnit.MILLISECONDS); + continue; } finally { if (client != null) MasterClient.close(client); diff --git a/test/src/main/java/org/apache/accumulo/test/functional/SimpleBalancerFairnessIT.java b/test/src/main/java/org/apache/accumulo/test/functional/SimpleBalancerFairnessIT.java index 864ba06e4e2..cbed280a3da 100644 --- a/test/src/main/java/org/apache/accumulo/test/functional/SimpleBalancerFairnessIT.java +++ b/test/src/main/java/org/apache/accumulo/test/functional/SimpleBalancerFairnessIT.java @@ -30,6 +30,7 @@ import org.apache.accumulo.core.client.impl.ClientContext; import org.apache.accumulo.core.client.impl.Credentials; import org.apache.accumulo.core.client.impl.MasterClient; +import org.apache.accumulo.core.client.impl.thrift.ThriftNotActiveServiceException; import org.apache.accumulo.core.client.security.tokens.PasswordToken; import org.apache.accumulo.core.conf.Property; import org.apache.accumulo.core.master.thrift.MasterClientService; @@ -82,12 +83,18 @@ public void simpleBalancerFairness() throws Exception { int unassignedTablets = 1; for (int i = 0; unassignedTablets > 0 && i < 10; i++) { MasterClientService.Iface client = null; - try { - client = MasterClient.getConnectionWithRetry(context); - stats = client.getMasterStats(Tracer.traceInfo(), creds.toThrift(c.getInstance())); - } finally { - if (client != null) - MasterClient.close(client); + while (true) { + try { + client = MasterClient.getConnectionWithRetry(context); + stats = client.getMasterStats(Tracer.traceInfo(), creds.toThrift(c.getInstance())); + break; + } catch (ThriftNotActiveServiceException e) { + // Let it loop, fetching a new location + sleepUninterruptibly(100, TimeUnit.MILLISECONDS); + } finally { + if (client != null) + MasterClient.close(client); + } } unassignedTablets = stats.getUnassignedTablets(); if (unassignedTablets > 0) { From 3e20d25ce58c134aa47952d675f3273d0b7ba1a9 Mon Sep 17 00:00:00 2001 From: Josh Elser Date: Thu, 15 Sep 2016 17:23:45 -0400 Subject: [PATCH 2/4] Remove the testing stuff --- .../rpc/HighlyAvailableServiceInvocationHandler.java | 2 +- .../src/main/java/org/apache/accumulo/master/Master.java | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/server/base/src/main/java/org/apache/accumulo/server/rpc/HighlyAvailableServiceInvocationHandler.java b/server/base/src/main/java/org/apache/accumulo/server/rpc/HighlyAvailableServiceInvocationHandler.java index b7e90522001..e9001199934 100644 --- a/server/base/src/main/java/org/apache/accumulo/server/rpc/HighlyAvailableServiceInvocationHandler.java +++ b/server/base/src/main/java/org/apache/accumulo/server/rpc/HighlyAvailableServiceInvocationHandler.java @@ -46,7 +46,7 @@ public HighlyAvailableServiceInvocationHandler(I instance, HighlyAvailableServic public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // If the service is not active, throw an exception if (!service.isActiveService()) { - LOG.trace("Denying access to RPC service"); + LOG.trace("Denying access to RPC service as this instance is not the active instance."); throw new ThriftNotActiveServiceException(); } try { diff --git a/server/master/src/main/java/org/apache/accumulo/master/Master.java b/server/master/src/main/java/org/apache/accumulo/master/Master.java index 1d7f16a0324..9647becdf11 100644 --- a/server/master/src/main/java/org/apache/accumulo/master/Master.java +++ b/server/master/src/main/java/org/apache/accumulo/master/Master.java @@ -1697,10 +1697,9 @@ public Long getSteadyTime() { @Override public boolean isActiveService() { - return r.nextInt(2) == 0; - // if (null != masterLock) { - // return masterLock.isLocked(); - // } - // return false; + if (null != masterLock) { + return masterLock.isLocked(); + } + return false; } } From fb1232fdb1cafc77e2d68e6d3a89b1562c4b92ac Mon Sep 17 00:00:00 2001 From: Josh Elser Date: Thu, 15 Sep 2016 17:28:06 -0400 Subject: [PATCH 3/4] Remove this unnecessary exception class now --- ...ghlyAvailableServiceInvocationHandler.java | 2 +- .../server/rpc/NotActiveServiceException.java | 26 ------------------- .../org/apache/accumulo/master/Master.java | 2 +- 3 files changed, 2 insertions(+), 28 deletions(-) delete mode 100644 server/base/src/main/java/org/apache/accumulo/server/rpc/NotActiveServiceException.java diff --git a/server/base/src/main/java/org/apache/accumulo/server/rpc/HighlyAvailableServiceInvocationHandler.java b/server/base/src/main/java/org/apache/accumulo/server/rpc/HighlyAvailableServiceInvocationHandler.java index e9001199934..9b9572eb24e 100644 --- a/server/base/src/main/java/org/apache/accumulo/server/rpc/HighlyAvailableServiceInvocationHandler.java +++ b/server/base/src/main/java/org/apache/accumulo/server/rpc/HighlyAvailableServiceInvocationHandler.java @@ -29,7 +29,7 @@ /** * An {@link InvocationHandler} which checks to see if a {@link HighlyAvailableService} is the current active instance of that service, throwing - * {@link NotActiveServiceException} when it is not the current active instance. + * {@link ThriftNotActiveServiceException} when it is not the current active instance. */ public class HighlyAvailableServiceInvocationHandler implements InvocationHandler { private static final Logger LOG = LoggerFactory.getLogger(HighlyAvailableServiceInvocationHandler.class); diff --git a/server/base/src/main/java/org/apache/accumulo/server/rpc/NotActiveServiceException.java b/server/base/src/main/java/org/apache/accumulo/server/rpc/NotActiveServiceException.java deleted file mode 100644 index be4b3ef61a8..00000000000 --- a/server/base/src/main/java/org/apache/accumulo/server/rpc/NotActiveServiceException.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to you under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.accumulo.server.rpc; - -/** - * An {@link Exception} which denotes that the service which was invoked is not the active instance for that service in the Accumulo cluster. - */ -public class NotActiveServiceException extends RuntimeException { - - private static final long serialVersionUID = 1L; - -} diff --git a/server/master/src/main/java/org/apache/accumulo/master/Master.java b/server/master/src/main/java/org/apache/accumulo/master/Master.java index 9647becdf11..61c44b39301 100644 --- a/server/master/src/main/java/org/apache/accumulo/master/Master.java +++ b/server/master/src/main/java/org/apache/accumulo/master/Master.java @@ -1698,7 +1698,7 @@ public Long getSteadyTime() { @Override public boolean isActiveService() { if (null != masterLock) { - return masterLock.isLocked(); + return masterLock.isLocked(); } return false; } From f8a350a6ff782c99fdd5ffa1a3ce49c03d9be1fb Mon Sep 17 00:00:00 2001 From: Josh Elser Date: Thu, 15 Sep 2016 17:30:37 -0400 Subject: [PATCH 4/4] Some more cleanup from testing --- proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java | 1 - .../src/main/java/org/apache/accumulo/master/Master.java | 3 --- 2 files changed, 4 deletions(-) diff --git a/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java b/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java index 6e2ed13a2cf..56866c24028 100644 --- a/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java +++ b/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java @@ -337,7 +337,6 @@ private void handleExceptionNNF(Exception ex) throws org.apache.accumulo.proxy.t private void handleException(Exception ex) throws org.apache.accumulo.proxy.thrift.AccumuloException, org.apache.accumulo.proxy.thrift.AccumuloSecurityException, TException { try { - logger.info("Foo", ex); throw ex; } catch (AccumuloException e) { throw new org.apache.accumulo.proxy.thrift.AccumuloException(e.toString()); diff --git a/server/master/src/main/java/org/apache/accumulo/master/Master.java b/server/master/src/main/java/org/apache/accumulo/master/Master.java index 61c44b39301..ec0b8f30e19 100644 --- a/server/master/src/main/java/org/apache/accumulo/master/Master.java +++ b/server/master/src/main/java/org/apache/accumulo/master/Master.java @@ -30,7 +30,6 @@ import java.util.Map; import java.util.Map.Entry; import java.util.Optional; -import java.util.Random; import java.util.Set; import java.util.SortedMap; import java.util.TreeMap; @@ -1693,8 +1692,6 @@ public Long getSteadyTime() { return timeKeeper.getTime(); } - private final Random r = new Random(); - @Override public boolean isActiveService() { if (null != masterLock) {