RpcWritable.Buffer packet = RpcWritable.Buffer.wrap(bb); RpcResponseHeaderProto header = packet.getValue(RpcResponseHeaderProto.getDefaultInstance()); checkResponse(header); int callId = header.getCallId(); if (LOG.isDebugEnabled()) LOG.debug(getName() + " got value #" + callId); RpcStatusProto status = header.getStatus(); if (status == RpcStatusProto.SUCCESS) { Writable value = packet.newInstance(valueClass, conf); final String exceptionClassName = header.hasExceptionClassName() ? header.getExceptionClassName() : "ServerDidNotSetExceptionClassName"; final String errorMsg = header.hasErrorMsg() ? header.getErrorMsg() : "ServerDidNotSetErrorMsg" ; final RpcErrorCodeProto erCode = (header.hasErrorDetail() ? header.getErrorDetail() : null); if (erCode == null) { LOG.warn("Detailed error code not set by server on rpc error");
result = result && (hasCallId() == other.hasCallId()); if (hasCallId()) { result = result && (getCallId() == other.getCallId()); result = result && (hasStatus() == other.hasStatus()); if (hasStatus()) { result = result && (getStatus() == other.getStatus()); result = result && (hasServerIpcVersionNum() == other.hasServerIpcVersionNum()); if (hasServerIpcVersionNum()) { result = result && (getServerIpcVersionNum() == other.getServerIpcVersionNum()); result = result && (hasExceptionClassName() == other.hasExceptionClassName()); if (hasExceptionClassName()) { result = result && getExceptionClassName() .equals(other.getExceptionClassName()); result = result && (hasErrorMsg() == other.hasErrorMsg()); if (hasErrorMsg()) { result = result && getErrorMsg() .equals(other.getErrorMsg()); result = result && (hasErrorDetail() == other.hasErrorDetail()); if (hasErrorDetail()) { result = result && (getErrorDetail() == other.getErrorDetail());
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.getDescriptor().getEnumTypes().get(1); }
responseWrapper.readFields(inStream); RpcResponseHeaderProto header = responseWrapper.getMessageHeader(); switch (header.getStatus()) { case ERROR: // might get a RPC error during case FATAL: throw new RemoteException(header.getExceptionClassName(), header.getErrorMsg()); default: break; if (header.getCallId() != AuthProtocol.SASL.callId) { throw new SaslException("Non-SASL response during negotiation");
saslPacket.getValue(RpcResponseHeaderProto.getDefaultInstance()); switch (header.getStatus()) { case ERROR: // might get a RPC error during case FATAL: throw new RemoteException(header.getExceptionClassName(), header.getErrorMsg()); default: break; if (header.getCallId() != AuthProtocol.SASL.callId) { throw new SaslException("Non-SASL response during negotiation");
responseWrapper.readFields(inStream); RpcResponseHeaderProto header = responseWrapper.getMessageHeader(); switch (header.getStatus()) { case ERROR: // might get a RPC error during case FATAL: throw new RemoteException(header.getExceptionClassName(), header.getErrorMsg()); default: break; if (header.getCallId() != AuthProtocol.SASL.callId) { throw new SaslException("Non-SASL response during negotiation");
responseWrapper.readFields(inStream); RpcResponseHeaderProto header = responseWrapper.getMessageHeader(); switch (header.getStatus()) { case ERROR: // might get a RPC error during case FATAL: throw new RemoteException(header.getExceptionClassName(), header.getErrorMsg()); default: break; if (header.getCallId() != AuthProtocol.SASL.callId) { throw new SaslException("Non-SASL response during negotiation");
int totalLen = in.readInt(); RpcResponseHeaderProto header = RpcResponseHeaderProto.parseDelimitedFrom(in); checkResponse(header); int headerLen = header.getSerializedSize(); headerLen += CodedOutputStream.computeRawVarint32Size(headerLen); int callId = header.getCallId(); if (LOG.isDebugEnabled()) LOG.debug(getName() + " got value #" + callId); RpcStatusProto status = header.getStatus(); if (status == RpcStatusProto.SUCCESS) { Writable value = ReflectionUtils.newInstance(valueClass, conf); final String exceptionClassName = header.hasExceptionClassName() ? header.getExceptionClassName() : "ServerDidNotSetExceptionClassName"; final String errorMsg = header.hasErrorMsg() ? header.getErrorMsg() : "ServerDidNotSetErrorMsg" ; final RpcErrorCodeProto erCode = (header.hasErrorDetail() ? header.getErrorDetail() : null); if (erCode == null) { LOG.warn("Detailed error code not set by server on rpc error");
int totalLen = in.readInt(); RpcResponseHeaderProto header = RpcResponseHeaderProto.parseDelimitedFrom(in); checkResponse(header); int headerLen = header.getSerializedSize(); headerLen += CodedOutputStream.computeRawVarint32Size(headerLen); int callId = header.getCallId(); if (LOG.isDebugEnabled()) LOG.debug(getName() + " got value #" + callId); RpcStatusProto status = header.getStatus(); if (status == RpcStatusProto.SUCCESS) { Writable value = ReflectionUtils.newInstance(valueClass, conf); final String exceptionClassName = header.hasExceptionClassName() ? header.getExceptionClassName() : "ServerDidNotSetExceptionClassName"; final String errorMsg = header.hasErrorMsg() ? header.getErrorMsg() : "ServerDidNotSetErrorMsg" ; final RpcErrorCodeProto erCode = (header.hasErrorDetail() ? header.getErrorDetail() : null); if (erCode == null) { LOG.warn("Detailed error code not set by server on rpc error");
int totalLen = in.readInt(); RpcResponseHeaderProto header = RpcResponseHeaderProto.parseDelimitedFrom(in); checkResponse(header); int headerLen = header.getSerializedSize(); headerLen += CodedOutputStream.computeRawVarint32Size(headerLen); int callId = header.getCallId(); if (LOG.isDebugEnabled()) LOG.debug(getName() + " got value #" + callId); RpcStatusProto status = header.getStatus(); if (status == RpcStatusProto.SUCCESS) { Writable value = ReflectionUtils.newInstance(valueClass, conf); final String exceptionClassName = header.hasExceptionClassName() ? header.getExceptionClassName() : "ServerDidNotSetExceptionClassName"; final String errorMsg = header.hasErrorMsg() ? header.getErrorMsg() : "ServerDidNotSetErrorMsg" ; final RpcErrorCodeProto erCode = (header.hasErrorDetail() ? header.getErrorDetail() : null); if (erCode == null) { LOG.warn("Detailed error code not set by server on rpc error");
result = result && (hasCallId() == other.hasCallId()); if (hasCallId()) { result = result && (getCallId() == other.getCallId()); result = result && (hasStatus() == other.hasStatus()); if (hasStatus()) { result = result && (getStatus() == other.getStatus()); result = result && (hasServerIpcVersionNum() == other.hasServerIpcVersionNum()); if (hasServerIpcVersionNum()) { result = result && (getServerIpcVersionNum() == other.getServerIpcVersionNum()); result = result && (hasExceptionClassName() == other.hasExceptionClassName()); if (hasExceptionClassName()) { result = result && getExceptionClassName() .equals(other.getExceptionClassName()); result = result && (hasErrorMsg() == other.hasErrorMsg()); if (hasErrorMsg()) { result = result && getErrorMsg() .equals(other.getErrorMsg()); result = result && (hasErrorDetail() == other.hasErrorDetail()); if (hasErrorDetail()) { result = result && (getErrorDetail() == other.getErrorDetail());
result = result && (hasCallId() == other.hasCallId()); if (hasCallId()) { result = result && (getCallId() == other.getCallId()); result = result && (hasStatus() == other.hasStatus()); if (hasStatus()) { result = result && (getStatus() == other.getStatus()); result = result && (hasServerIpcVersionNum() == other.hasServerIpcVersionNum()); if (hasServerIpcVersionNum()) { result = result && (getServerIpcVersionNum() == other.getServerIpcVersionNum()); result = result && (hasExceptionClassName() == other.hasExceptionClassName()); if (hasExceptionClassName()) { result = result && getExceptionClassName() .equals(other.getExceptionClassName()); result = result && (hasErrorMsg() == other.hasErrorMsg()); if (hasErrorMsg()) { result = result && getErrorMsg() .equals(other.getErrorMsg()); result = result && (hasErrorDetail() == other.hasErrorDetail()); if (hasErrorDetail()) { result = result && (getErrorDetail() == other.getErrorDetail());
result = result && (hasCallId() == other.hasCallId()); if (hasCallId()) { result = result && (getCallId() == other.getCallId()); result = result && (hasStatus() == other.hasStatus()); if (hasStatus()) { result = result && (getStatus() == other.getStatus()); result = result && (hasServerIpcVersionNum() == other.hasServerIpcVersionNum()); if (hasServerIpcVersionNum()) { result = result && (getServerIpcVersionNum() == other.getServerIpcVersionNum()); result = result && (hasExceptionClassName() == other.hasExceptionClassName()); if (hasExceptionClassName()) { result = result && getExceptionClassName() .equals(other.getExceptionClassName()); result = result && (hasErrorMsg() == other.hasErrorMsg()); if (hasErrorMsg()) { result = result && getErrorMsg() .equals(other.getErrorMsg()); result = result && (hasErrorDetail() == other.hasErrorDetail()); if (hasErrorDetail()) { result = result && (getErrorDetail() == other.getErrorDetail());
.computeBytesSize(4, getExceptionClassNameBytes()); .computeBytesSize(5, getErrorMsgBytes()); .computeSInt32Size(8, retryCount_); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size;
result = result && (hasCallId() == other.hasCallId()); if (hasCallId()) { result = result && (getCallId() == other.getCallId()); result = result && (hasStatus() == other.hasStatus()); if (hasStatus()) { result = result && (getStatus() == other.getStatus()); result = result && (hasServerIpcVersionNum() == other.hasServerIpcVersionNum()); if (hasServerIpcVersionNum()) { result = result && (getServerIpcVersionNum() == other.getServerIpcVersionNum()); result = result && (hasExceptionClassName() == other.hasExceptionClassName()); if (hasExceptionClassName()) { result = result && getExceptionClassName() .equals(other.getExceptionClassName()); result = result && (hasErrorMsg() == other.hasErrorMsg()); if (hasErrorMsg()) { result = result && getErrorMsg() .equals(other.getErrorMsg()); result = result && (hasErrorDetail() == other.hasErrorDetail()); if (hasErrorDetail()) { result = result && (getErrorDetail() == other.getErrorDetail());
.computeBytesSize(4, getExceptionClassNameBytes()); .computeBytesSize(5, getErrorMsgBytes()); .computeSInt32Size(8, retryCount_); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size;
public org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto buildPartial() { org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto result = new org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
RpcWritable.Buffer packet = RpcWritable.Buffer.wrap(bb); RpcResponseHeaderProto header = packet.getValue(RpcResponseHeaderProto.getDefaultInstance()); checkResponse(header); int callId = header.getCallId(); if (LOG.isDebugEnabled()) LOG.debug(getName() + " got value #" + callId); RpcStatusProto status = header.getStatus(); if (status == RpcStatusProto.SUCCESS) { Writable value = packet.newInstance(valueClass, conf); final String exceptionClassName = header.hasExceptionClassName() ? header.getExceptionClassName() : "ServerDidNotSetExceptionClassName"; final String errorMsg = header.hasErrorMsg() ? header.getErrorMsg() : "ServerDidNotSetErrorMsg" ; final RpcErrorCodeProto erCode = (header.hasErrorDetail() ? header.getErrorDetail() : null); if (erCode == null) { LOG.warn("Detailed error code not set by server on rpc error");
.computeBytesSize(4, getExceptionClassNameBytes()); .computeBytesSize(5, getErrorMsgBytes()); .computeSInt32Size(8, retryCount_); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size;
.computeBytesSize(4, getExceptionClassNameBytes()); .computeBytesSize(5, getErrorMsgBytes()); .computeSInt32Size(8, retryCount_); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size;